0.18.2
when I built my node_modules, I got the following tips. I don't know how can resolve it:
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
cd superset/assets
cnpm install -d //鐢熸垚渚濊禆鍖呯洰褰昻ode_modules,涓嬭浇渚濊禆
npm run build //鎵цwebpack鎵撳寘
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.
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!