superset build failures - npm run build

369 views
Skip to first unread message

Yogesh Agrawal

unread,
May 26, 2017, 12:54:11 PM5/26/17
to airbnb_superset
Hi,
I have a usecase to build superset from code. Steps done:
cd $SUPERSETHOME/superset/assets
npm install # this works fine
npm run build # this step errors out

Error:
    + 2221 hidden modules

ERROR in ./~/css-loader!./~/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/yagrawal/Documents/git/superset/superset/assets/node_modules/react-select/less/control.less (line 64, column 14)
 @ ./stylesheets/react-select/select.less 4:14-124
 @ ./javascripts/css-theme.js

Anyone else faced/facing this error?  Also, internally, i can't access npm global registry, so I will eventually override npm registry like "npm install --registry <internalRegistryname>". Any other inputs?

Thanks for your help. 

Yogesh Agrawal

unread,
May 26, 2017, 3:46:54 PM5/26/17
to airbnb_superset
More info and logs:
1 verbose cli [ '/usr/local/Cellar/node/7.5.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using n...@4.6.1
3 info using no...@v7.5.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle supe...@0.18.0-alpha.3~prebuild: supe...@0.18.0-alpha.3
6 silly lifecycle supe...@0.18.0-alpha.3~prebuild: no script for prebuild, continuing
7 info lifecycle supe...@0.18.0-alpha.3~build: supe...@0.18.0-alpha.3
8 verbose lifecycle supe...@0.18.0-alpha.3~build: unsafe-perm in lifecycle true
10 verbose lifecycle supe...@0.18.0-alpha.3~build: CWD: /Users/test/superset/superset/assets
11 silly lifecycle supe...@0.18.0-alpha.3~build: Args: [ '-c', 'NODE_ENV=production webpack --colors --progress' ]
12 silly lifecycle supe...@0.18.0-alpha.3~build: Returned: code: 2  signal: null
13 info lifecycle supe...@0.18.0-alpha.3~build: Failed to exec build script
14 verbose stack Error: supe...@0.18.0-alpha.3 build: `NODE_ENV=production webpack --colors --progress`
14 verbose stack Exit status 2
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:192:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:192:7)
14 verbose stack     at maybeClose (internal/child_process.js:890:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid supe...@0.18.0-alpha.3
16 verbose cwd /Users/test/superset/superset/assets
17 verbose Darwin 16.6.0
18 verbose argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "run" "build"
19 verbose node v7.5.0
20 verbose npm  v4.6.1
21 error code ELIFECYCLE
22 error errno 2
23 error supe...@0.18.0-alpha.3 build: `NODE_ENV=production webpack --colors --progress`
23 error Exit status 2
24 error Failed at the supe...@0.18.0-alpha.3 build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 2, true ]

On Friday, May 26, 2017 at 9:54:11 AM UTC-7, Yogesh Agrawal wrote:
Hi,
I have a usecase to build superset from code. Steps done:
cd $SUPERSETHOME/superset/assets
npm install # this works fine
npm run build # this step errors out

Error:
    + 2221 hidden modules

ERROR in ./~/css-loader!./~/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/test/superset/superset/assets/node_modules/react-select/less/control.less (line 64, column 14)
 @ ./stylesheets/react-select/select.less 4:14-124
 @ ./javascripts/css-theme.js
Reply all
Reply to author
Forward
0 new messages