-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
COMMUNITY: PR is welcomedWe think it's a good feature to have but would love for the community to help with the PR for itWe think it's a good feature to have but would love for the community to help with the PR for itbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
loadRemote does not work with Safari, in the repo example you can see that I have 3 LazyComponent (rendering the same remote/component) and two of them will always go in error due to:


I suspect this is related to this safari bug
(it's not related to versions, I tried forking your example with vite 5, and had the same issue)
I'm well aware it could be a federation/runtime bug, and I'm also open to fix this bug, but I need some guidance there to understand where the issue could be. I was able to find out that the await import('component') in the virtual-exposes.mf it will give a "uninitialized" module in safari, but, why?
Version
7
Reproduction
https://github.com/lucax88x/module-federation-vite-react-bug
Relevant log output
ReferenceError: Cannot access uninitialized variable.
Validations
- Read the docs.
- Read the common issues list.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
413n
Metadata
Metadata
Assignees
Labels
COMMUNITY: PR is welcomedWe think it's a good feature to have but would love for the community to help with the PR for itWe think it's a good feature to have but would love for the community to help with the PR for itbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed