Skip to content

Uncaught ReferenceError: installedChunks is not defined #128

Open

Description

@gautierrollin

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 😉

Activity

  1. ScriptedAlchemy commented on Mar 6, 2020

    @ScriptedAlchemy
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions