Closed surgiie closed 2 years ago
Hey @surgiie,
sorry for the super late response 😓. I haven't run into this issue yet, but I believe that the recent changes in Mix versioning and people using different Webpack versions along with it warrant some Github Action-based tests to be written around it, to make sure everything works as expected for everybody.
I'm happy to accept a PR from a community member if someone is interested in taking this on. Otherwise, I'll take some time within next week and try fixing it myself.
Kind regards and thanks for reporting it. g
Hey @surgiie,
should be solved in v.0.5.0 release we have just put out.
Closing it until then, but do let me know if anything is out of the ordinary.
Kind regards, g
Forgive me if im missing something obvious here, but Im having trouble getting this to work with laravel mix 6, specifically have
6.0.19
defined in my package.json.When I register this with mix and call
mix.svelte()
, i get a bunch of webpack errors that look like this:The screenshot in this issue is a more thorough example of output and exactly what im experiencing : https://github.com/webpack/webpack/issues/11868
This is due to the changes in webpack 5 not including polyfills for core modules
Ive tried
mix.options({ legacyNodePolyfills: true });
as suggested by laravel mix docs and other issues but still no working build/compile by mix.These errors suggest adding polyfills in webpack config but im not entirely sure what all modules require polyfills or how to go about determining modules that indicate a polyfill is required so ive just been putting
false
on moduleresolve.fallback
in my webpack.mix.js file and seeing if the issues disappearHere is my current webpack.mix.js, that has reduced to the least amount of errors:
Hoping someone has hit this and found a solution? I believe there is some configuration or polyfill required as in addition to the errors i mentioned above, it seems like modules are failing to resolve: