Skip to content

Compile errors with 2.0.2 (worked with 2.0.0) #10633

@jmc265

Description

@jmc265

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions