Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 11 with webpack 5 breaks with webpackMissingModule on recompilation #19934

Closed
1 of 15 tasks
jawadsh123 opened this issue Feb 2, 2021 · 1 comment 路 Fixed by #20466
Closed
1 of 15 tasks

Angular 11 with webpack 5 breaks with webpackMissingModule on recompilation #19934

jawadsh123 opened this issue Feb 2, 2021 · 1 comment 路 Fixed by #20466
Labels
area: ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@jawadsh123
Copy link

馃悶 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

No, breaks after moving to webpack 5

Description

An Angular 11 app with webpack 5 breaks after recompilation (for changes on certain files)

Cannot find module '@angular/core'
at webpackMissingModule ...

馃敩 Minimal Reproduction

馃敟 Exception or Error

image

馃實 Your Environment


Angular CLI: 11.1.2
Node: 14.15.1
OS: linux x64

Angular: 11.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1101.2
@angular-devkit/build-angular   0.1101.2
@angular-devkit/core            11.1.2
@angular-devkit/schematics      11.1.2
@angular/cli                    11.1.2
@schematics/angular             11.1.2
@schematics/update              0.1101.2
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?

Originally I had posted this on webpack webpack/webpack#12561
reason for my suspicion was this recent change to rebuildModule in webpack 5 -> webpack/webpack#11433
and the dependency of AngularWebpackPlugin on rebuildModule
But my understanding of both the tools is fairly limited, and webpack folks think this might be a deeper incompatibility with webpack 5

@alan-agius4 alan-agius4 added area: ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix labels Feb 2, 2021
@ngbot ngbot bot added this to the Backlog milestone Feb 2, 2021
@alan-agius4 alan-agius4 linked a pull request Apr 8, 2021 that will close this issue
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants