Skip to content
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

Uncaught ReferenceError: installedChunks is not defined #128

Open
gautierrollin opened this issue Feb 17, 2020 · 1 comment
Open

Uncaught ReferenceError: installedChunks is not defined #128

gautierrollin opened this issue Feb 17, 2020 · 1 comment

Comments

@gautierrollin
Copy link

Hi 😊

I've been trying webpack-external-import on a project with MinChunkSizePlugin and it would seem that using MinChunkSizePlugin and URLImportPlugin together may cause issues.

Indeed, if Webpack create only one chunk (because of a large minChunkSize value), I get this error:

Uncaught ReferenceError: installedChunks is not defined

I don't really know how Webpack works but the webpackJsonpCallback function is missing in the non-working version. So I think that Webpack can't load properly the external chunk 🤔

Hope it helps 😉

@ScriptedAlchemy
Copy link
Owner

Likely messes with chunk splitting which is highly controlled under the hood of V2. Some thing just won’t work.

Webpack 5 has a rewritten version of this that we just finished up last week. https://github.com/mizx/mfe-webpack-demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants