Solvedangular cli AOT build fails
✔️Accepted Answer
I noticed same problem and after npm i enhanced-resolve@3.3.0
I can build with AOT
Other Answers:
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...
Same problem here. npm install enhanced-resolve@3.3.0
resolved the issue for me temporarily, but only when it's installed as an addition into an already up and running project. Deployment through a fresh install with npm install
with this dependency set in package.json
does not work.
This is a major bug, because it breaks a running deployment pipeline and with it the whole production setup.
Same issue for me. Resolved with enhanced-resolve@3.3.0
on Ubuntu Server.
RIP the first 2 hours of my morning.
I'm on windows and adding enhanced-resolve@3.3.0
doesn't work for me.
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
.