-
Notifications
You must be signed in to change notification settings - Fork 12k
I am on Angular 5 and CLI 1.5 and I get an error #8333
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
Did you update both your @angular/cli reference under dev dependencies and your global cli install? I I think I got this error earlier when I hadn't done one or the other. |
Try deleting the lock file and node modules then reinstall. Also make sure both global CLI and the project one are updated. |
I have the same error. Tried deleting node-modules and lockfile. It did not help... |
One of our developers got a similar problem at work today. The problem was due to the fact that he had upgraded his version of node to 8.xx. After uninstalling Node and installing the latest version of Node 6.xx the problem went away. |
I upgraded to angular 5.0.0 and downgraded node to 7 and 6 but it did not work. Then I downgraded angular to 4.4.6 and got it working. I receive the error when building with --prod flag (ionic), with will enable minify and aot |
I faced this error after updating a non-CLI project to Angular 5 and By using |
Yes, that's it , now it works!, THANKS! |
Where is de path of this file, the webpack config? |
I have the same problem .. Please update @angular/cli. Angular 5+ requires at least Angular CLI 1.5+
global packages:
local packages:
System:
Environment Variables:
Misc:
|
Ionic's starter project is using Angular 5. |
@thianlopezz If you don't find a webpack config in your source tree, then there are three options:
In the first case you may need to post an issue elsewhere, in the other two cases the problem is very special to your project and I can't help you with the infos you have exposed so far. |
@klochko7 You're using Ionic. Maybe you should post your issue there. |
I have the same problem with VS2017 ASP.NET Core + Angular 2 project. When I update the original project template to Angular 5.0.0 I get the above error. My versions: PM> ng --version (some @ signs removed not shown properly) PM> npm -g outdated PM> npm --versions I have tried almost every possible scenario and combination of versions. This is where I stuck. I need to use angular 5 for this project. What did I miss? |
@danielleiszen Do you have any link to that ASP.NET template, a repo or something alike? Your versions seem to be up-to-date. Are |
@about-code Thanks for the answer. I replaced two instances of AotPlugin to AngularCompilerPlugin, and it seems to solve the issue. Thx. |
for me as well @ngtools/webpack 1.8.2 was not work I had to use as well 1.8.0 and it works perfectly. |
@about-code I too am using ASP.NET Core 2.0's Angular template and upgraded from Angular 4 to Angular 5. I replaced two instances of AotPlugin in my wepack.config.js file with AngularCompilerPlugin to fix the problem. Thank you for pointing me in the right direction. I can't recall where I got the link from now, but anyone looking to do the same can go (https://long2know.com/2017/11/angular-5-0-released/) to see how it is done. |
The error handling should be better. |
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. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
I just build a webpack program and I get this error with @ngtools
The log given by the failure.
Desired functionality.
I am on Angular CLI 1.5, why do I get this error that I am not on Angular 1.5???
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: