Skip to content

Can't find name error when using ng serve #1959

@seklyza

Description

@seklyza

Please provide us with the following information:

  1. OS? Windows 10
  2. Versions. angular-cli: 1.0.0-beta.11-webpack.2
    node: 6.2.1
    os: win32 x64
  3. Repro steps. The app is created using the CLI. I ran ng init and then when it finishes installing I ran ng serve, and I get some errors like can't find name xxx.
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:26:29
Cannot find name 'Function'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:31:25
Cannot find name 'Function'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:35:21
Cannot find name 'Error'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:40:35
Cannot find name 'Function'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:52:50
Cannot find name 'Function'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:60:33
Cannot find name 'RegExp'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:110:24
Cannot find name 'Date'.

ERROR in [default] C:\Users\HOME\Desktop\newProj\node_modules\@types\jasmine\index.d.ts:123:52
Cannot find name 'Array'.

You got it... There are 491 errors like this.

  1. Mention any other details that might be useful.

The application works fine. (I think, not sure, only has 1 component with title = "app works!")


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions