Created
November 4, 2019 02:52
-
-
Save sidraval/9a36fa565683fd61675a003bac335f6b to your computer and use it in GitHub Desktop.
Error without `@types/node` dev dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> tsc && npm run minify | |
node_modules/@types/node/index.d.ts:75:11 - error TS2300: Duplicate identifier 'IteratorResult'. | |
75 interface IteratorResult<T> { } | |
~~~~~~~~~~~~~~ | |
node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 | |
41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>; | |
~~~~~~~~~~~~~~ | |
'IteratorResult' was also declared here. | |
node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'. | |
41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>; | |
~~~~~~~~~~~~~~ | |
node_modules/@types/node/index.d.ts:75:11 | |
75 interface IteratorResult<T> { } | |
~~~~~~~~~~~~~~ | |
'IteratorResult' was also declared here. | |
Found 2 errors. | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 2 | |
npm ERR! boxrec@7.0.1 build: `tsc && npm run minify` | |
npm ERR! Exit status 2 | |
npm ERR! | |
npm ERR! Failed at the boxrec@7.0.1 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/sid/.npm/_logs/2019-11-03T17_42_58_207Z-debug.log | |
error Command failed with exit code 2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment