-
Notifications
You must be signed in to change notification settings - Fork 12k
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 build fails #7113
Comments
I noticed same problem and after |
Same problem here |
@mchmielarski That's a very nice guess 👍 |
Same here. |
thanks for the solution guys, this problem just cost us the whole morning. |
Thx, same here. |
The same here! enhanced-resolve@3.3.0 solved it! |
thanks god for this issue, i fixed this problem the whole day |
Workaround with "enhanced-resolve@3.3.0" seems to work on Mac OS but not on Linux!? Can anyone confirm this behavior? |
works on linux ubuntu 16.04 for me |
Same issue. |
Guys, you should really use fixed dependency versions for Angular-Cli. It's been a millionth time when everything breaks because in new versions of sub dependencies there is something unexpected... |
The angular-cli version is already fixed for us which is 1.3.1 but still we have this error. |
Same issue for me. Resolved with RIP the first 2 hours of my morning. |
It worked for me too with 3.3.0. |
Still we have error in AOT even with 3.4.1. Also in development the environment.ts is not overwritten with the appropriate environment file |
This breaks all builds, amazing fun was had today! PLZ PLZ PLZ move to fixed dependency. |
Issue still exists with |
When creating new project with fresh installed angular/cli 1.2.0 fails, too :( |
Same problem here. This is a major bug, because it breaks a running deployment pipeline and with it the whole production setup. |
I'm on windows and adding |
@mscherer82 Did you run |
@angelnikolov yes, I deleted |
Hm, can you try running |
@pvanhemmen |
@vicetjs That's what I did and the only way it works for me, too. Thanx for your help! |
Am I correct in thinking that the I've tried installing |
For more detail see angular/angular-cli#7113
@studds you shouldn't need to add |
Installing "enhanced-resolve": "^3.3.0" solved it for me |
I have enhanced resolve 3.3.0 and ngtools webpack 1.6.2, Field 'browser' doesn't contain a valid alias configuration "@angular/animations": "^4.3.6", |
Finaly makes it work with devDependencies "@angular/cli": "1.2.6" and dependencies "enhanced-resolve": "3.3.0" and @angular/*:"^4.3.6" |
I am getting this error while creating new angular project. Installing packages for tooling via npm. npm ERR! shasum check failed for C:\Users\Sukeshu\AppData\Local\Temp\npm-3120-1165392c\registry.npmjs.org\jasmine-spec-reporter-\jasmine-spec-reporter-4.1.1.tgz npm ERR! Please include the following file with any support request: Package install failed, see above. |
"enhanced-resolve": "3.3.0" fixed the issue for me. |
Just saying... if you are using prod build you should be using shrinkwrap... it's there for you guys to use. Also, yarn. |
this issue creeped up for me using ngtools/webpack for my angular build... not using angular-cli and I specifically used ngtools/webpack 1.5.3 and the issue resolved itself... with using that other plugin.... So for people using ngtools/webpack simply use at this time version 1.5.3... adding the other package won't do anything no matter what version you use. |
upgrading angular/cli to 1.2.4 resolve the problem for me . |
Angular apps created with older cli still dont work. To get around it, i just copied a fresh package.json from a new app.
|
Should this help someone else: After reading through this whole thing, I noticed the dependency: When I allowed that to upgrade, the problem went away. |
* Refactors npm scripts. * Changes build command to prods * Fixes production build * Upgrades angular-cli due to: angular/angular-cli#7113 * Adds bugs and repo to package.json
I am getting the same issue for Angular CLI 1.5.0 I also have Enhanced resolve 3.3.0 |
Me too. Still getting: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' Even after use Angular CLI 1.5.0 and Enhanced resolve 3.3.0 |
Same here. Any Update ? |
enhanced-resolve@3.3.0 is not work for me |
As @cbeaujoin well said. If you leave it like this you will build with AOT without troubles.
I have to add that typescript had to be 2.3.4 for me, and the best of all, the build time was drastically reduced to around 6:35 when before it was taking about 29min to build. I will stay like this for a while. |
See angular/angular-cli#7113. Additionally, remove no longer needed fix to yarn issue (yarnpkg/yarni#3485).
See angular/angular-cli#7113. Additionally, remove no longer needed fix to yarn issue (yarnpkg/yarn#3485).
enhanced-resolve@3.3.0 solved it! |
See angular#7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
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.
The log given by the failure.
Desired functionality.
aot build runs
Mention any other details that might be useful.
Maybe, enhanced-resolve 3.4.0 is cause.
webpack/enhanced-resolve#98
ng build --prod
runs successfully afternpm i enhanced-resolve@3.3.0
.The text was updated successfully, but these errors were encountered: