-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
A with webpack v5 bundled unchanged angular app, does not work anymore #11635
Comments
(cc @StephenFluin @hansl we got this in from Twitter triage) |
Not quite sure what's going on here... That's the unmangled error message:
Seems like not CompilerFactory is available. I figured that the webpack 5 version uses I have not deep knownledge about angular so only guessing: CompilerFactory and Maybe someone from the angular team as more insight into that... |
Ok I found the problem in AngularCompilerPlugin: It hooks into |
Answer above and we fix it, feel free to feedback |
I would like to track this until this is fixed in AngularCompilerPlugin |
Fixed 👍 With angular@11.0.0-next.6 and webpack@5.1.2. |
fixed by angular/angular-cli#19062 |
Bug report
A successful bundled angular app, does not work after webpack 5 upgrade.
What is the current behavior?
Link: https://github.modevel.de/poc/webpack/#series
If the current behavior is a bug, please provide the steps to reproduce.
Please use the bash commands to reproduce the same code.
Console:
mkdir angular-bug cd angular-bug npm i @leanup/cli@webpack @leanup/cli-angular@webpack npx lean create -o npm run build
Open manuel the
dist/index.html
.If you need more transparency in the webpack.config: https://github.com/leanupjs/leanup/blob/0e7d4589ab78ca534bc8a13ec7760be9710576cf/packages/cli/core/src/webpack.config.ts#L135
What is the expected behavior?
Other relevant information:
webpack version: ^5
Node.js version: ^4
Operating System: win / unix
Additional tools:
The text was updated successfully, but these errors were encountered: