-
Notifications
You must be signed in to change notification settings - Fork 12k
Issue: Cannot read property 'thisCompilation' of undefined #9794
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
Comments
Same here... |
Whats the solution to the problem? |
Thanks for reporting this issue. However, this issue is a duplicate of an existing issue #9793. Please subscribe to that issue for future updates. |
Here is the answer from issues #9793 :
|
thanks @ademidun ... that works for me |
I had the same problem, I solved unistall webpack and unistall @ angular / cli -g and local and I installed only @ angular / cli because in the new version @ angular / cli no direct reliance of webpack. I use @angular/cli version 1.7.3 |
webpackのエラー回避のため、webpackのバージョンを下げた angular/angular-cli#9794
thanks @ademidun ... that works for me too! |
thanks @ademidun .. it works |
For anyone else that comes across this ... just updating to Angular CLI 1.7.4 fixed this issue for me. I already had 3.11.0 installed for Webpack, but was using CLI 1.6.8 and getting this error on a fresh pull of the app (with no
HTH! |
Updating to 1.7.4 did not solve this for me, I still see get the This is the output of
|
Please use below command |
@ashkaushik yeah, I know, but I want to use the new version of webpack, however I did just saw this issue saying it has to be updated inside the CLI itself #9793 |
The CLI internally manages the build system and versions thereof. Webpack 4.x is a major version change which contains a multitude of breaking changes. 6.x of the CLI provides full support for the new version and is currently in RC. |
Removing node_modules |
I get the issue with create react app, ejected For a temp fix, edit the config/webpack.config.prod.js |
Sadly, the solution of @ademidun didn't work for me. Any other idea's how to solve this problem? I have been trying to start / migrate react into an existing jquery project. So far I am able to solve most of the errors except this one... Suggestions are more than welcome |
thanks @ademidun ... that works for me |
Hi all, it is very sad that I could not make it work on my project atm. I tried all of your answers here that solved your project but no luck. I really need a hand with this, can some one help?
Note: I do both update the local and global packages for webpack and angular/cli Working repo |
I'm using angular cli version 7.1.4 .it is throwing me the same error |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Observed behavior
Desired behavior
Mention any other details that might be useful (optional)
Reverting webpack to 3.11.0 solves this issue
The text was updated successfully, but these errors were encountered: