You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/06/19 03:13:30 UTC

[GitHub] [incubator-superset] zhaoyongjie edited a comment on issue #10066: "npm run build" fails

zhaoyongjie edited a comment on issue #10066:
URL: https://github.com/apache/incubator-superset/issues/10066#issuecomment-646411017


   I also failed to compile, The lastest commit on Master branch.
   ```
   $ git lg
   * a6390afb8 - (HEAD -> master, upstream/master) style: push bootstrap theme towards SIP-34 styles (#10056) (5 hours ago) <Maxime Beauchemin>
   * 8e23d4f36 - chore: Upgrade pylint to 2.5.3 and fix most new rules (#10101) (6 hours ago) <Will Barrett>
   * 02fee3531 - (origin/master, origin/HEAD) chore(metricoption): remove metricoption and columntypelable dependency (#10077) (24 hours ago) <Phillip Kelley-Dotson>
   * 817b7aaf2 - style: Change logo color to new branding (#10090) (24 hours ago) <Will Barrett>
   
   
   $ python --version
   Python 3.6.8
   
   $ node --version
   v12.18.1
   
   $ npm --version
   6.14.5
   
   $ uname -a
   Darwin Yongjie-Zhaos-MacBook-Pro.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64 i386 MacBookPro11,4 Darwin
   
   $ npm run build
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx(149,11):
   TS2322: Type '{ label: string; value: string; }' is not assignable to type 'ValueType<GroupType<GroupType<never>>>'.
     Property 'options' is missing in type '{ label: string; value: string; }' but required in type 'GroupType<GroupType<never>>'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx(150,11):
   TS2322: Type '(selected: SelectOption | null) => void' is not assignable to type '(value: ValueType<GroupType<GroupType<never>>>, action: ActionMeta<GroupType<GroupType<never>>>) => void'.
     Types of parameters 'selected' and 'value' are incompatible.
       Type 'ValueType<GroupType<GroupType<never>>>' is not assignable to type 'SelectOption | null'.
         Type 'undefined' is not assignable to type 'SelectOption | null'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/Filters.tsx(151,11):
   TS2322: Type '(inputValue: string, loadedOptions: SelectOption[], { page }: { page: number; }) => Promise<{ options: { label: string; value: string; }[]; hasMore: boolean; additional: { page: number; }; }>' is not assignable to type 'LoadOptions<GroupType<GroupType<never>>, any>'.
     Types of parameters 'loadedOptions' and 'options' are incompatible.
       Type 'OptionsList<GroupType<GroupType<never>>>' is not assignable to type 'SelectOption[]'.
         The type 'OptionsType<GroupType<GroupType<never>>>' is 'readonly' and cannot be assigned to the mutable type 'SelectOption[]'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx(53,29):
   TS2339: Property 'hidden' does not exist on type 'HeaderGroup<{}>'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx(56,28):
   TS2339: Property 'sortable' does not exist on type 'HeaderGroup<{}>'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx(61,27):
   TS2339: Property 'sortable' does not exist on type 'HeaderGroup<{}>'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx(86,33):
   TS2339: Property 'hidden' does not exist on type 'ColumnInstance<{}>'.
   
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx
   ERROR in /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/src/components/ListView/TableCollection.tsx(88,53):
   TS2339: Property 'cellProps' does not exist on type 'ColumnInstance<{}>'.
   npm ERR! code ELIFECYCLE
   npm ERR! errno 2
   npm ERR! superset@0.999.0-dev build: `cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors`
   npm ERR! Exit status 2
   npm ERR!
   npm ERR! Failed at the superset@0.999.0-dev build script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
   
   npm ERR! A complete log of this run can be found in:
   npm ERR!     /Users/yongjie.zhao/.npm/_logs/2020-06-19T03_09_38_635Z-debug.log
   ```
   
   
   npm debug log.
   ```
   (incubator-superset) yongjie.zhao@:superset-frontend$ cat /Users/yongjie.zhao/.npm/_logs/2020-06-19T03_09_38_635Z-debug.log
   0 info it worked if it ends with ok
   1 verbose cli [
   1 verbose cli   '/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/bin/node',
   1 verbose cli   '/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/bin/npm',
   1 verbose cli   'run',
   1 verbose cli   'build'
   1 verbose cli ]
   2 info using npm@6.14.5
   3 info using node@v12.18.1
   4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
   5 info lifecycle superset@0.999.0-dev~prebuild: superset@0.999.0-dev
   6 info lifecycle superset@0.999.0-dev~build: superset@0.999.0-dev
   7 verbose lifecycle superset@0.999.0-dev~build: unsafe-perm in lifecycle true
   8 verbose lifecycle superset@0.999.0-dev~build: PATH: /Users/yongjie.zhao/.nvm/versions/node/v12.18.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend/node_modules/.bin:/Users/yongjie.zhao/.virtualenvs/incubator-superset/bin:/Users/yongjie.zhao/Downloads/google-cloud-sdk/bin:/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-virtualenvwrapper/shims:/Users/yongjie.zhao/.pyenv/libexec:/Users/yongjie.zhao/.pyenv/plugins/python-build/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-virtualenvwrapper/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-virtualenv/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-update/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-installer/bin:/Users/yongjie.zhao/.pyenv/plugins/pyenv-doctor/bin:/Users/yongjie.zhao/.pyenv/shims:/Users/yongjie.zhao/.pyenv/bin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/go/libexec/bin:/Users/yongjie.zhao/go/bin:/usr/local/sbin:/usr/local/opt/openssl@1.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS
   9 verbose lifecycle superset@0.999.0-dev~build: CWD: /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend
   10 silly lifecycle superset@0.999.0-dev~build: Args: [
   10 silly lifecycle   '-c',
   10 silly lifecycle   'cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors'
   10 silly lifecycle ]
   11 silly lifecycle superset@0.999.0-dev~build: Returned: code: 2  signal: null
   12 info lifecycle superset@0.999.0-dev~build: Failed to exec build script
   13 verbose stack Error: superset@0.999.0-dev build: `cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors`
   13 verbose stack Exit status 2
   13 verbose stack     at EventEmitter.<anonymous> (/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
   13 verbose stack     at EventEmitter.emit (events.js:315:20)
   13 verbose stack     at ChildProcess.<anonymous> (/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
   13 verbose stack     at ChildProcess.emit (events.js:315:20)
   13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
   13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
   14 verbose pkgid superset@0.999.0-dev
   15 verbose cwd /Users/yongjie.zhao/workspace/kyligence/incubator-superset/superset-frontend
   16 verbose Darwin 19.4.0
   17 verbose argv "/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/bin/node" "/Users/yongjie.zhao/.nvm/versions/node/v12.18.1/bin/npm" "run" "build"
   18 verbose node v12.18.1
   19 verbose npm  v6.14.5
   20 error code ELIFECYCLE
   21 error errno 2
   22 error superset@0.999.0-dev build: `cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors`
   22 error Exit status 2
   23 error Failed at the superset@0.999.0-dev build script.
   23 error This is probably not a problem with npm. There is likely additional logging output above.
   24 verbose exit [ 2, true ]
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org