-
Notifications
You must be signed in to change notification settings - Fork 214
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
wdm: Failed to compile on new project #352
Comments
I cannot seem to reproduce the issue, from the logs it's possible that was an angular issues that may have been patched in the meanwhile. Can you retry to see if you still have the issue, running this commands before to make sure tou have the latest versions?
|
Hi, C:\Users\User>node --version C:\Users\User>npm --version OS: Windows 10 what I did npm rm -g @angular/cli generator-ngx-rocket npm cache clean --force npm i -g generator-ngx-rocket (I added -g)
mkdir angular6 cd angular6 ngx new npm start
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Now the app has been created but I tried just changing a class in login.component.html and it failed to compile: i 「wdm」: Compiling... Date: 2018-08-10T08:45:30.774Z - Hash: 128e6d78f68c5fd8ee77 - Time: 7424ms ERROR in ./src/app/app.module.ngfactory.js |
@elenat82 Unfortunately, the latest Angular CLI released is buggy, see angular/angular-cli#11835 Try I'm really considering to fix the angular/cli version in generated projects, as issues like this pops up quite often (but should'nt...) 😞 |
Thanks sinedied, I did: npm i -g @angular/cli@6.1.1
Then cd into my folder, npm start, save a file (without changing a line) and same error as before |
Whoops sorry I was too quick to type, it's the
In the linked issue, I worked for some but I tried it and also tried to downgrade The only solution that worked for me was to remove the |
So I tried this: removed --aot flag from package.json line 8 hardcoded version of @angular/compiler-cli to "6.1.1" in package.json line 42 npm install updated 1 package in 30.045s npm start Now it seems to work, thank you! |
Closing as the bug in @angular/compiler-cli has been fixed, see angular/angular-cli#11835 |
× 「wdm」: Built at: 04/04/2019 10:44:55 AM ERROR in 1 |
@mcbrideut Have you tried the solution of the 2nd post?
|
I saw that after I posted. It did work, thank you. |
I'm submitting a...
Current behavior
npm start
fails on new projectExpected behavior
wdm does not fail
Minimal reproduction of the problem with instructions
Create a new generator-ngx-rocket project an run
npm start
ornpm run build
.Environment
The text was updated successfully, but these errors were encountered: