Skip to content

Conversation

idanovinda
Copy link
Member

Updating Python and Javascript libraries for the UI.

@FxKu FxKu modified the milestones: 1.9, 2.0 Jan 26, 2023
@FxKu
Copy link
Member

FxKu commented Jan 26, 2023

cannot build this locally:

docker run -it -u $(id -u) -v $(pwd):/workdir -w /workdir/app node:16.19.0-alpine npm run build

> postgres-operator-ui@1.8.2 build
> NODE_ENV=development npm run webpack

npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm WARN logfile  error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
npm WARN logfile   errno: -13,
npm WARN logfile   code: 'EACCES',
npm WARN logfile   syscall: 'scandir',
npm WARN logfile   path: '/root/.npm/_logs'
npm WARN logfile }

> postgres-operator-ui@1.8.2 prewebpack
> npm run clean

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
npm ERR! errno -13
npm ERR! 
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR! 
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 1217546946:1217400513 "/root/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
npm notice 
npm notice New major version of npm available! 8.19.3 -> 9.4.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.4.0
npm notice Run npm install -g npm@9.4.0 to update!
npm notice 
make: *** [Makefile:25: appjs] Error 243

@FxKu FxKu modified the milestones: 2.0, 1.9 Jan 26, 2023
@FxKu
Copy link
Member

FxKu commented Jan 26, 2023

With lower alpine version it builds, but I get an error while creating clusters.

Uncaught Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
    at Module.<anonymous> (js-yaml.mjs:3794:1)
    at Object.requestCreate (new.tag.pug:806:9)
    at Object.handleEvent (riot.js:1456:1)

And on listing the status I got:

js-yaml.mjs:3794 Uncaught Error: Function yaml.safeDump is removed in js-yaml 4. Use yaml.dump instead, which is now safe by default.
    at Module.<anonymous> (js-yaml.mjs:3794:1)
    at Object.<anonymous> (postgresql.tag.pug:226:15)
    at Object.value (riot.js:813:1)
    at componentUpdate (riot.js:1865:22)
    at Object.<anonymous> (riot.js:2991:35)
    at Object.<anonymous> (postgresql.tag.pug:149:17)
    at i (jquery-3.2.1.min.js:2:28017)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2:28783)
    at A (jquery-3.2.1.min.js:4:14035)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4:16323)
    ```

@FxKu
Copy link
Member

FxKu commented Jan 27, 2023

👍

1 similar comment
@idanovinda
Copy link
Member Author

👍

@FxKu FxKu merged commit d5251c5 into master Jan 27, 2023
@FxKu FxKu deleted the update-ui-dependencies branch January 27, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants