Skip to content

TS2304: cannot find name "xxx"——after update to rc.0 #5046

@wayearn

Description

@wayearn

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 10

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

@angular/cli: 1.0.0-rc.0
node: 6.9.1
os: win32 x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-rc.0
@angular/compiler-cli: 2.4.8

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

follow update instruction from beta.32 to rc.0

The log given by the failure.

Normally this include a stack trace and some more information.

webstrom failure:
image
image

Nothing change just cover the src/app folder.

  1. remove global cli and clean cache.
  2. install the rc.0
  3. use ng new upgrade-project --skip-install to new a update project.
  4. copy my src/app folder and paste it into update-project cover the old one.
  5. run ng serve works well ,no errors output, but all my file with "confirm","document", etc, got a note.

Mention any other details that might be useful.

If I cancel the settings in webstorm, it works fine.
image

Webstorm version:
2016.3.3

Anyone the same?


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