Skip to content

ERROR: in Could not resolve module @angular/core/src/di/opaque_token ...and moer #5271

@j-Cis

Description

@j-Cis

OS

Windows 10

Versions.

@angular/cli: 1.0.0-rc.1
node: 7.7.1
os: win32 x64
@angular/common: 4.0.0-rc.2
@angular/compiler: 4.0.0-rc.2
@angular/core: 4.0.0-rc.2
@angular/forms: 4.0.0-rc.2
@angular/http: 4.0.0-rc.2
@angular/platform-browser: 4.0.0-rc.2
@angular/platform-browser-dynamic: 4.0.0-rc.2
@angular/platform-server: 4.0.0-rc.2
@angular/router: 4.0.0-rc.2
@angular/animations: 4.0.0-rc.2
@angular/material: 2.0.0-beta.2
@angular/platform-webworker: 4.0.0-rc.2
@angular/platform-webworker-dynamic: 4.0.0-rc.2
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 4.0.0-rc.2

Repro steps.

1.) ng new myAPP -ng4 -si -sg --style=scss --routing -lc -v
1.1) cd myAPP
2.) yarn
3.) npm i bootstrap@next save
4.) ng serve

The log given by the failure.

ERROR in Could not resolve module @angular/core/src/di/opaque_token

ERROR in ./src/main.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:\myAPP\node_modules@ngtools\webpack\node_modules\typescript\lib\typescript.js:9426:20)
at Object.createCompilerHost (C:\myAPP\node_modules@ngtools\webpack\node_modules\typescript\lib\typescript.js:62475:26)
at Object.ngcLoader (C:\myAPP\node_modules@ngtools\webpack\src\loader.js:338:33)
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

ERROR in ./src/polyfills.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:\myAPP\node_modules@ngtools\webpack\node_modules\typescript\lib\typescript.js:9426:20)
at Object.createCompilerHost (C:\myAPP\node_modules@ngtools\webpack\node_modules\typescript\lib\typescript.js:62475:26)
at Object.ngcLoader (C:\myAPP\node_modules@ngtools\webpack\src\loader.js:338:33)
@ multi ./src/polyfills.ts


Please Help for me
@CisSasGot - Jan Roman Cisowski

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