question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with new Webpack 4.0.0

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
BBaysingercommented, Feb 26, 2018

@splincode, this did not fix the problem for me. Reverting to Webpack 3.11.0.

6reactions
jotatoledocommented, Feb 25, 2018

Please fill the issue template.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found