Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./docker/up.sh --build --seed broken #2251

Closed
wslulciuc opened this issue Nov 16, 2022 · 2 comments
Closed

./docker/up.sh --build --seed broken #2251

wslulciuc opened this issue Nov 16, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@wslulciuc
Copy link
Member

The command:

webpack --config webpack.prod.js

if failing with the following error:

 => ERROR [marquezproject/marquez-web:0.27.0 7/8] RUN npm run build                                                     1.8s
------
 > [marquezproject/marquez-web:0.27.0 7/8] RUN npm run build:
#0 0.625
#0 0.625 > [email protected] build /usr/src/app
#0 0.625 > webpack --config webpack.prod.js
#0 0.625
#0 1.604 [webpack-cli] Failed to load '/usr/src/app/webpack.prod.js' config
#0 1.727 [webpack-cli] TypeError: Cannot read property 'Descendant' of undefined
#0 1.727     at Object.<anonymous> (/usr/src/app/node_modules/renderkid/node_modules/css-select/lib/compile.js:36:56)
#0 1.727     at Module._compile (internal/modules/cjs/loader.js:999:30)
#0 1.727     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#0 1.727     at Module.load (internal/modules/cjs/loader.js:863:32)
#0 1.727     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
#0 1.727     at Module.require (internal/modules/cjs/loader.js:887:19)
#0 1.727     at require (internal/modules/cjs/helpers.js:74:18)
#0 1.727     at Object.<anonymous> (/usr/src/app/node_modules/renderkid/node_modules/css-select/lib/index.js:29:17)
#0 1.727     at Module._compile (internal/modules/cjs/loader.js:999:30)
#0 1.727     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#0 1.745 npm ERR! code ELIFECYCLE
#0 1.746 npm ERR! errno 2
#0 1.753 npm ERR! [email protected] build: `webpack --config webpack.prod.js`
#0 1.753 npm ERR! Exit status 2
#0 1.754 npm ERR!
#0 1.754 npm ERR! Failed at the [email protected] build script.
#0 1.754 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#0 1.759
#0 1.759 npm ERR! A complete log of this run can be found in:
#0 1.760 npm ERR!     /root/.npm/_logs/2022-11-16T21_43_04_982Z-debug.log
------
failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 2
@wslulciuc wslulciuc added the bug Something isn't working label Nov 16, 2022
@tito12
Copy link
Contributor

tito12 commented Nov 17, 2022

I tried to reproduce this error on main branch, but didn't get any error like this.
Some information about it which I found fb55/css-select#738

@wslulciuc
Copy link
Member Author

Thanks, @tito12. I had some stale binaries / deps. Just had to run (which we may want to document or something for the none npm experts):

$ npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants