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

error in npm run build #9

Open
yutiansut opened this issue Mar 25, 2019 · 5 comments
Open

error in npm run build #9

yutiansut opened this issue Mar 25, 2019 · 5 comments

Comments

@yutiansut
Copy link

λ  npm run build

> @oriolmirosa/[email protected] build D:\x\jupyterlab_materialdarker
> run-p build:**


> @oriolmirosa/[email protected] build:typescript D:\x\jupyterlab_materialdarker
> tsc


> @oriolmirosa/[email protected] build:webpack D:\x\jupyterlab_materialdarker
> webpack

Hash: 1cea5f270c54dfb58b31
Version: webpack 2.7.0
Time: 1758ms
                               Asset     Size  Chunks             Chunk Names
5a0856eb52623ae94b09dbbf31a27b95.ttf   121 kB          [emitted]
43bb4cbf1d0ecfdb1309e4cb67264f35.ttf   121 kB          [emitted]
                           ignore.js  2.68 kB       0  [emitted]  main
                           index.css  69.7 kB       0  [emitted]  main
   [0] ./style/index.css 41 bytes {0} [built]
   [1] ./~/css-loader!./style/fonts.css 893 bytes [built]
   [2] ./~/css-loader!./style/index.css 1.2 kB [built]
   [3] ./~/css-loader!./style/urls.css 7.62 kB [built]
   [4] ./~/css-loader!./style/variables.css 13.3 kB [built]
   [5] ./~/css-loader/lib/css-base.js 2.26 kB [built]
   [6] ./~/css-loader/lib/url/escape.js 448 bytes [built]
   [7] ./~/style-loader/lib/addStyles.js 9.92 kB [built]
   [8] ./~/style-loader/lib/urls.js 3.01 kB [built]
   [9] ./style/icons/jupyter/book.svg 494 bytes [built]
  [10] ./style/icons/jupyter/book_selected.svg 465 bytes [built]
  [11] ./style/icons/jupyter/console.svg 446 bytes [built]
  [12] ./style/icons/jupyter/csv.svg 416 bytes [built]
  [13] ./style/icons/jupyter/csv_selected.svg 413 bytes [built]
  [14] ./style/icons/jupyter/directory.svg 668 bytes [built]
    + 74 hidden modules
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 2.26 kB {0} [built]
       [2] ./style/icons/jupyter/jupyter.svg 2.41 kB {0} [built]
       [3] ./style/icons/md/search.svg 415 bytes {0} [built]
       [4] ./style/images/jupyterlab-wordmark.svg 4.42 kB {0} [built]
       [5] ./~/css-loader!./style/fonts.css 893 bytes {0} [built]
       [6] ./~/css-loader!./style/urls.css 7.62 kB {0} [built]
       [7] ./~/css-loader!./style/variables.css 13.3 kB {0} [built]
       [8] ./~/css-loader!./style/index.css 1.2 kB {0} [built]
       [9] ./style/icons/jupyter/book.svg 494 bytes {0} [built]
      [10] ./style/icons/jupyter/book_selected.svg 465 bytes {0} [built]
      [11] ./style/icons/jupyter/console.svg 446 bytes {0} [built]
      [12] ./style/icons/jupyter/csv.svg 416 bytes {0} [built]
      [13] ./style/icons/jupyter/csv_selected.svg 413 bytes {0} [built]
      [14] ./style/icons/jupyter/directory.svg 668 bytes {0} [built]
      [85] ./style/images/caretup.png 329 bytes {0} [built]
        + 71 hidden modules
node_modules/@types/prop-types/index.d.ts(32,31): error TS2304: Cannot find name 'unique'.
node_modules/@types/prop-types/index.d.ts(32,38): error TS1005: '=' expected.
node_modules/@types/prop-types/index.d.ts(34,46): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(34,54): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(34,75): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(34,83): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(34,99): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(34,107): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(36,47): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(36,48): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(36,49): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(36,51): error TS2304: Cannot find name 'Exclude'.
node_modules/@types/prop-types/index.d.ts(36,59): error TS2304: Cannot find name 'V'.
node_modules/@types/prop-types/index.d.ts(36,61): error TS2304: Cannot find name 'K'.
node_modules/@types/prop-types/index.d.ts(36,65): error TS2532: Object is possibly 'undefined'.
node_modules/@types/prop-types/index.d.ts(36,76): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(36,84): error TS2693: 'Validator' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(36,94): error TS2304: Cannot find name 'infer'.
node_modules/@types/prop-types/index.d.ts(36,100): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(36,100): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(36,103): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(36,105): error TS2693: 'IsOptional' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(36,116): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(36,119): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(36,134): error TS2693: 'never' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(36,142): error TS2304: Cannot find name 'K'.
node_modules/@types/prop-types/index.d.ts(36,144): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(36,146): error TS2693: 'never' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(36,152): error TS1128: Declaration or statement expected.
node_modules/@types/prop-types/index.d.ts(36,154): error TS2304: Cannot find name 'keyof'.
node_modules/@types/prop-types/index.d.ts(36,160): error TS1005: ',' expected.
node_modules/@types/prop-types/index.d.ts(36,160): error TS2304: Cannot find name 'V'.
node_modules/@types/prop-types/index.d.ts(37,31): error TS2304: Cannot find name 'Exclude'.
node_modules/@types/prop-types/index.d.ts(38,50): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(38,51): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(38,52): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(38,54): error TS2693: 'InferType' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(38,64): error TS2304: Cannot find name 'V'.
node_modules/@types/prop-types/index.d.ts(38,66): error TS2304: Cannot find name 'K'.
node_modules/@types/prop-types/index.d.ts(38,69): error TS1005: '(' expected.
node_modules/@types/prop-types/index.d.ts(38,71): error TS1128: Declaration or statement expected.
node_modules/@types/prop-types/index.d.ts(46,27): error TS2304: Cannot find name 'NonNullable'.
node_modules/@types/prop-types/index.d.ts(51,30): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(51,38): error TS2693: 'Validator' only refers to a type, but is being used as a value here.
node_modules/@types/prop-types/index.d.ts(51,48): error TS2304: Cannot find name 'infer'.
node_modules/@types/prop-types/index.d.ts(51,54): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(51,54): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(51,57): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(51,59): error TS2304: Cannot find name 'T'.
node_modules/@types/prop-types/index.d.ts(53,31): error TS2344: Type 'RequiredKeys<V>' does not satisfy the constraint 'keyof V'.
node_modules/@types/prop-types/index.d.ts(69,78): error TS2304: Cannot find name 'NonNullable'.
node_modules/@types/prop-types/index.d.ts(73,75): error TS2304: Cannot find name 'Required'.
node_modules/@types/react/index.d.ts(2291,41): error TS2304: Cannot find name 'Exclude'.
node_modules/@types/react/index.d.ts(2297,27): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2297,35): error TS2693: 'any' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2298,7): error TS2693: 'string' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2298,14): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2298,22): error TS2304: Cannot find name 'keyof'.
node_modules/@types/react/index.d.ts(2298,28): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2298,28): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2298,32): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2299,9): error TS1109: Expression expected.
node_modules/@types/react/index.d.ts(2299,11): error TS2693: 'Pick' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2299,16): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2299,19): error TS2304: Cannot find name 'Exclude'.
node_modules/@types/react/index.d.ts(2299,33): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2299,42): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2300,9): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2300,11): error TS2693: 'Partial' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2300,24): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2300,27): error TS2304: Cannot find name 'Extract'.
node_modules/@types/react/index.d.ts(2300,41): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2300,50): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2301,9): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2301,11): error TS2693: 'Partial' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2301,24): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2301,27): error TS2304: Cannot find name 'Exclude'.
node_modules/@types/react/index.d.ts(2301,41): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2301,50): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2302,5): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2302,7): error TS2693: 'never' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2302,12): error TS1005: ')' expected.
node_modules/@types/react/index.d.ts(2314,49): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2314,59): error TS7028: Unused label.
node_modules/@types/react/index.d.ts(2314,70): error TS2304: Cannot find name 'infer'.
node_modules/@types/react/index.d.ts(2314,76): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2314,76): error TS2304: Cannot find name 'T'.
node_modules/@types/react/index.d.ts(2314,79): error TS7028: Unused label.
node_modules/@types/react/index.d.ts(2314,93): error TS2304: Cannot find name 'infer'.
node_modules/@types/react/index.d.ts(2314,99): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2314,99): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2315,13): error TS1128: Declaration or statement expected.
node_modules/@types/react/index.d.ts(2315,15): error TS2693: 'Defaultize' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2315,41): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2315,65): error TS2304: Cannot find name 'T'.
node_modules/@types/react/index.d.ts(2315,70): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2316,13): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2316,15): error TS2304: Cannot find name 'C'.
node_modules/@types/react/index.d.ts(2316,17): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2316,38): error TS2304: Cannot find name 'infer'.
node_modules/@types/react/index.d.ts(2316,44): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2316,45): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2317,19): error TS2693: 'MergePropTypes' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2317,34): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2317,58): error TS2304: Cannot find name 'T'.
node_modules/@types/react/index.d.ts(2318,17): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2318,19): error TS2304: Cannot find name 'C'.
node_modules/@types/react/index.d.ts(2318,21): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2318,45): error TS2304: Cannot find name 'infer'.
node_modules/@types/react/index.d.ts(2318,51): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2318,52): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2319,23): error TS2693: 'Defaultize' only refers to a type, but is being used as a value here.
node_modules/@types/react/index.d.ts(2319,34): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2319,37): error TS2304: Cannot find name 'D'.
node_modules/@types/react/index.d.ts(2320,21): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2320,23): error TS2304: Cannot find name 'P'.
node_modules/@types/react/index.d.ts(2320,24): error TS1005: ')' expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @oriolmirosa/[email protected] build:typescript: `tsc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @oriolmirosa/[email protected] build:typescript 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!     C:\Users\yutiansut\AppData\Roaming\npm-cache\_logs\2019-03-25T05_16_33_846Z-debug.log
ERROR: "build:typescript" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @oriolmirosa/[email protected] build: `run-p build:**`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @oriolmirosa/[email protected] 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!     C:\Users\yutiansut\AppData\Roaming\npm-cache\_logs\2019-03-25T05_16_33_926Z-debug.log
@yutiansut
Copy link
Author

@oriolmirosa

@oriolmirosa
Copy link
Owner

This seems to be a problem with Typescript's types. I don't have the issue, but I have Typescript 3.1.1 installed, so maybe this happens if you have a more recent version. Can you check the Typescript version you're running?

tsc -v

@yutiansut
Copy link
Author

my tsc version is 2.9.2

@yutiansut
Copy link
Author

update to 3.1.1 and still doesn't work

@oriolmirosa
Copy link
Owner

What version of jupyterlab are you trying to build this against? If you're working on one of the 1.0.0-alpha releases from master, the extension will not build. It will only work on 0.35.4. I have made all the modifications for it to work on the 1.0.0-alpha releases in my local machine, but I wasn't planning on pushing the code until the 1.0.0 releases are the default installs through conda or pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants