TypeScript: Compile errors with 2.0.2 (worked with 2.0.0)
TypeScript Version: 2.0.0 --> 2.0.2
Expected behavior: Code compiles!
Actual behavior: Code compiles when using 2.0.0. Code does not compile when using 2.0.2.
When specifying "typescript": "2.0.0" in my package.json, all my projects compile absolutely fine (as they have been doing for some time).
However, when I upgrade (i.e. use either "typescript": "^2.0.0" or "typescript": "2.0.2") I get a lot of compile errors of the form:
ERROR in [default]
Cannot find global type 'Array'.
ERROR in [default]
Cannot find global type 'Boolean'.
ERROR in [default]
Cannot find global type 'Function'.
ERROR in [default]
Cannot find global type 'IArguments'.
ERROR in [default]
Cannot find global type 'Number'.
ERROR in [default]
Cannot find global type 'Object'.
ERROR in [default]
Cannot find global type 'RegExp'.
ERROR in [default]
Cannot find global type 'String'.
ERROR in [default] /Users/james/Documents/Workspace/.../node_modules/@types/axios/index.d.ts:42:18
Cannot find name 'Object'.
ERROR in [default] /Users/james/Documents/Workspace/.../node_modules/@types/q/index.d.ts:199:43
Cannot find name 'Function'.
ERROR in [default] /Users/james/Documents/Workspace/.../node_modules/typescript/lib/lib.es2015.d.ts:17:0
File '/Users/james/Documents/Workspace/.../node_modules/typescript/lib/lib.es2015.core.d.ts' not found.
ERROR in [default] /Users/james/Documents/Workspace/.../src/walletBar.ts:65:22
Cannot find name 'Error'.
Not sure what else I can provide to help debug this, let me know and I’ll get it.
Thanks.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 5
- Comments: 18 (9 by maintainers)
Commits related to this issue
- use typescript@2.0.0 2.0.2 is currently breaking us (see https://github.com/Microsoft/TypeScript/issues/10633) — committed to esvit/ng-table by ccrowhurstram 8 years ago
The awesome-typescript-loader loader had a problem working with 2.0.2. That has since been fixed in a newer version. Have you tried that?