Skip to content

Export not found when lazy load all bundles by react-universal-component #219

Description

@NNSTH

Hello,

I'm using this repo for a long period, and am very satisfied with it's results.
thanks for the awesome work!
Now, while working on performance improvements of our SSR pages, I want to load all bundles only for the active users.
This means that we don't use the "js" property of the "flushChunks" res, but taking the "scripts" from it and after we detect any user interaction with the page- we add it via a script element added to the head of the html.
Let me know if I'm not clear enough so I'll add some code samples.

Our bundles are not changed within this change, but the problem that I see is sometimes when a user interaction was detected, the bundles failed to load with error: "Export not found".

Can you explain what is my issue? How can I fix it?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions