-
Notifications
You must be signed in to change notification settings - Fork 12k
Incompatibility of @ngtools/[email protected] with [email protected] #4352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is an issue with a recent change in @ngtools/webpack I would recommend if possible to update angular cli to the latest version with the following commands:
Navigate to your project directory and do the following command:
|
@RicardoVaranda , I tried your suggestion and now am getting the below with
|
I am getting the same type of parse errors now as well after updating angular-cli: 1.0.0-beta.28.3 |
It's probably related to this issue, and the fix: #4378 (comment) |
In my case, I solved the problem updating my project and keeping "rxjs": "5.0.1" rather than "rxjs": "^5.0.3". Now the project is working again :D |
Tried suggestions from @RicardoVaranda @beeman, but unfortunately still not working and getting the same exact error:
However none fixed the issue. |
@darkkean Can you post your angular-cli.json and rest of error stack please. Latest version is beta.30, you can get this by installing the @angular/cli instead of angular-cli In regards to the error this seems like an error that was around when upgrading from quite old cli projects where the styles prop was not an array. |
@darkkean Please note this line in the first post: "@ngtools/webpack": "1.2.4", it solved the problem for me. |
@darkkean can you please try with the latest If that does not work, can you share you |
I'm attempting to migrate from the tour-of-heroes/system.js way of doing things to angular-cli. and stuck on Edit # 3: Solved: I didn't have the src/assets and src/environments folders (they were created, I just didn't copy them over) |
Dupe of #4378. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
OSX El Capitan
Versions.
angular-cli: 1.0.0-beta.26
node: 7.4.0
os: darwin x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/compiler-cli: 2.4.5
@angular/core: 2.4.5
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/platform-server: 2.4.5
@angular/router: 3.4.5
@ngtools/json-schema: 1.0.1
@ngtools/webpack: 1.2.4
Repro steps.
Yes
The log given by the failure.
Mention any other details that might be useful.
My
package.json
's dependencies are:In order to run a successful
ng serve
, I would need to explicitly set which version of @ngtools/webpack to download. So I downgraded it back to: 1.2.4.The text was updated successfully, but these errors were encountered: