Error with new Webpack 4.0.0
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Today has been released Webpack 4.0.0. If I try to run Angular with this new Webpack version I get:
Cannot read property ‘thisCompilation’ of undefined at NodeTemplatePlugin.apply (…\node_modules\webpack\lib\node\NodeTemplatePlugin.js:19:18)
If I go back to 3.11.0 works OK.
Environment
Angular version: 5.2.6
For Tooling issues:
- Node version: 6.11.3
- Platform: Windows
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Could not resolve dependency: npm ERR! peer webpack ...
Here is details of my error: My node version is 16.13.0 and npm is ... npm ERR! peer webpack@"^4.0.0" from uglifyjs-webpack-plugin@2.2.0 npm ......
Read more >To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to...
Read more >webpack-cli - npm
CLI for webpack & friends. Latest version: 5.0.1, last published: 19 days ago. Start using webpack-cli in your project by running `npm i ......
Read more >Error build web-vault patch 2.23.0 - Help
Hi, i'm trying to build vaultwarden using new 2.23.0 patch. The patch apply cleanly but after npm run dist i get an error:...
Read more >sage - Roots Discourse
Error Loading images in css using resource relative path . ... file-loader@6.2.0" has incorrect peer dependency "webpack@^4.0.0 || ^5.0.0".
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@splincode, this did not fix the problem for me. Reverting to Webpack 3.11.0.
Please fill the issue template.