-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
loadable/component - loadableReady doesn't work on webpack 5 #653
Comments
Hey @xnerhu 👋, |
The only know method for webpack5 is to replace Closing this issue as a duplicate of #636 |
confirm replacing |
where did you change that option ? |
Someone please pull request it 🙏 |
when you do ssr and doing something like
then you can collect scripts by running
so on this point you have to replace
or if you are using node15+
|
That doesn’t work, problem is the collector stats are wrong does not have the correct stats file. Is getting the server compilation i dont know why... and does not get the right assets for browser... |
@joacub then you are experiencing different issue)) I assume you are trying to do ssr, and then you have 2 webpack configs with 2 different settings, and you should have 2 different stats file. so when you collect chunks using root element from one folder, stats file you should import from another. but this is only my assumption - you haven't put any details of your problem. |
Yes you are completely right, I don’t know why it’s getting the server stats file maybe a doing something wrong, i will check and come back to you |
Is working now, i forgot put writetodisk option. Is working great again, thanks |
🐛 Bug Report
Method loadableReady throws errors on every version of Webpack 5. The same code and config works on Webpack 4.
On client side:
It throws
and
Details
The text was updated successfully, but these errors were encountered: