Can I Dynamically Import @originjs/vite-plugin-federation
remote components using dynamic-import-vars based on an array of objects.
#1637
Unanswered
ananduremanan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I wonder if it is possible to import a couple of components from a remote source generated using
@originjs/vite-plugin-federation components
in my Vite React.js app.Eg: I've an array of object as follows
I've tried importing them as below in my React.js App.tsx as follows
and use it as
but this throws an error
Uncaught TypeError: Failed to resolve module specifier 'remoteHRApp/landingdashboard'
.my vite config file looks like below
Is there any workaround to make it working?
Beta Was this translation helpful? Give feedback.
All reactions