-
Notifications
You must be signed in to change notification settings - Fork 434
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
AoT not working! #340
Comments
Is this from a fresh project ? Or after adding some components / etc. |
It's on fresh project.
And in build log I have those errors
|
Do you have aspnetcore environment set to production when trying to do AoT builds? |
Yes it was. |
enhanced-resolve: 3.3.0 helped me as well, the error was on clean clone also on automatic build on visualstudio.vom (2017 hosted) |
The issue was introduced with enhanced-resolved that is used by @ngtools/webpack as a dependency by ngtools/webpack. More details are here webpack/enhanced-resolve#98 |
I have the same issue:
and:
and:
I send you a copy of my project. Could you see if is a framework problem or package version problem? |
Hi, try add "enhanced-resolved" : "3.3.0" to devDependencies, normaly this package fix the problem. Note: On computer with npm5 the error still with this fix :( I don't have found how to fix with npm 5 |
This will be cleaned up in the latest PR #376 @Samkovskyi But all you need to do is remove |
Hey Mark,
AoT compilation stopped working. Now I'm receiving this error when running webpack:
ERROR in ./Client/main.browser.ts Module not found: Error: Can't resolve './$$_gendir/app/browser-app.module.ngfactory' in '\aspnetcore-angular2-universal-master\Client' @ ./Client/main.browser.ts 3:0-89
Could you help me with it?
The text was updated successfully, but these errors were encountered: