You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a similar issue, but in my case, the problem occurred when I tried to access the remoteEntry.js file from the deployed domain for example: https://example.com/assets/remoteEntry.js. localhost to localhost is just working fine in my case.
this is my host-app configuration
federation({
name: 'host-app',
filename: 'remoteEntry.js',
remotes: {
remote: 'http://localhost:3002/assets/remoteEntry.js'
},
shared: ['react', 'react-dom', '@lin/tools-component-library']
})
and this is my remote app configuration
plugins: [
...,
federation({
name: 'remote',
filename: 'remoteEntry.js',
exposes: {
'./Dashboard': './src/pages/dashboard/dashboard'
},
shared: ['react', 'react-dom', '@lib/tools-component-library']
})
],
base: 'http://localhost:3002',
server: {
open: true,
port: 3002,
cors: true
},
i can also see the file in browser at http://localhost:3002/assets/remoteEntry.js.
in my remote app terminal i can see the request but in browser it throws error
Versions
Reproduction
Additional Details
Steps to reproduce
What is Expected?
it should show to remote exported content in the host app
What is actually happening?
Stuck on loading, showing console error
The text was updated successfully, but these errors were encountered: