faceyspacey / faceyspacey/react-universal-component

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

Open
#219 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.