Incubator-superset: npm bugs when building node_modules

Created on 27 May 2017  路  6Comments  路  Source: apache/incubator-superset

Superset version

0.18.2

Question

when I built my node_modules, I got the following tips. I don't know how can resolve it:

Actual results

ERROR in ./~/[email protected]@css-loader!./~/[email protected]@less-loader/dist!./stylesheets/react-select/select.less
Module build failed: 

        &:hover {
                box-shadow: @select-input-hover-box-shadow;
            ^
Variable @select-input-hover-box-shadow is undefined
      in /Users/Alex/Desktop/superset/superset/assets/node_modules/[email protected]@react-select/less/control.less (line 64, column 14)
 @ ./stylesheets/react-select/select.less 4:14-162
 @ ./javascripts/css-theme.js

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `NODE_ENV=production webpack --colors --progress`
npm ERR! # **Exit status 2**
npm ERR! 
npm ERR! Failed at the [email protected] build script 'NODE_ENV=production webpack --colors --progress'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the superset package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=production webpack --colors --progress
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs superset
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls superset
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Alex/Desktop/superset/superset/assets/npm-debug.log

Steps to reproduce

cd superset/assets
cnpm install -d //鐢熸垚渚濊禆鍖呯洰褰昻ode_modules,涓嬭浇渚濊禆
npm run build //鎵цwebpack鎵撳寘

Most helpful comment

This was caused by no statement on the variable: select-input-hover-box-shadow.

Please try the following:
1) open "./superset/superset/assets/node_modules/react-select/less/control.less"
2) In line 6, add "@import "select.less";"
3) Save.
4) Rerun "npm run build".

Good luck!

All 6 comments

Logs says you are building 0.17.6 and not 0.18.2. BTW we had problems in the past with npm wrappers for china unrelated to superset.

This was caused by no statement on the variable: select-input-hover-box-shadow.

Please try the following:
1) open "./superset/superset/assets/node_modules/react-select/less/control.less"
2) In line 6, add "@import "select.less";"
3) Save.
4) Rerun "npm run build".

Good luck!

react-select should be pinned to version 1.0.0-rc.3 what's yours?

@patrickcnkm Thank you very much!!

Notice: this issue has been closed because it has been inactive for 278 days. Feel free to comment and request for this issue to be reopened.

patrickcnkm , thanks ji, its works for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fly-high-bj picture fly-high-bj  路  3Comments

kalimuthu123 picture kalimuthu123  路  3Comments

lenguyenthedat picture lenguyenthedat  路  3Comments

eliab picture eliab  路  3Comments

gbrian picture gbrian  路  3Comments