Description
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: local (v1.0.0-beta.31, branch: master)
node: 7.5.0
os: win32 x64
@angular/common: 4.0.0-beta.7
@angular/compiler: 4.0.0-beta.7
@angular/core: 4.0.0-beta.7
@angular/forms: 4.0.0-beta.7
@angular/http: 4.0.0-beta.7
@angular/platform-browser: 4.0.0-beta.7
@angular/platform-browser-dynamic: 4.0.0-beta.7
@angular/router: 4.0.0-beta.7
@angular/cli: 1.0.0-beta.31
@angular/compiler-cli: 4.0.0-beta.7
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
The error happens when you try to run a freshly created ng4 project
Step 1:
ng new my-project -ng4 --skip-install true --skip-git true --skip-tests true --skip-commit true --style scss --prefix ri --routing
Step 2
cd my-project > ng serve/build.
You will see this error:
ERROR in Could not resolve module @angular/core/src/di/opaque_token
The log given by the failure.
Normally this include a stack trace and some more information.
No logs, but I think this may have to do with AOT. Not sure.
Mention any other details that might be useful.
When Beta.31 first was released, I was able to follow the exact same steps as above and everything worked.
Thanks! We'll be in touch soon.