Ostof
Ostof
Explore posts from servers
SSolidJS
Created by Ostof on 6/18/2023 in #support
Module Federation inside a Monorepo
The remote component
const ScheduleComponent: Component = () => {
return (
<div>
<p>ScheduleComponent TEST</p>
</div>
)
}

export default ScheduleComponent
const ScheduleComponent: Component = () => {
return (
<div>
<p>ScheduleComponent TEST</p>
</div>
)
}

export default ScheduleComponent
5 replies
SSolidJS
Created by Ostof on 6/18/2023 in #support
Module Federation inside a Monorepo
But I get this error
remoteEntry.js:1 Uncaught (in promise) TypeError: l[e] is not a function
at Module.u (remoteEntry.js:1:741)
at __x00__virtual:__federation__:81:73
remoteEntry.js:1 Uncaught (in promise) TypeError: l[e] is not a function
at Module.u (remoteEntry.js:1:741)
at __x00__virtual:__federation__:81:73
5 replies
SSolidJS
Created by Ostof on 6/18/2023 in #support
Module Federation inside a Monorepo
const ScheduleComponent = lazy(() => import('remoteApp/schedule_tab'))
5 replies
SSolidJS
Created by Ostof on 6/18/2023 in #support
Module Federation inside a Monorepo
the remote app
federation({
name: 'remoteApp',
filename: 'remoteEntry.js',
exposes: { ScheduleComponent: './src/ui/schedule_tab' },
shared: ['solid-js'],
})
federation({
name: 'remoteApp',
filename: 'remoteEntry.js',
exposes: { ScheduleComponent: './src/ui/schedule_tab' },
shared: ['solid-js'],
})
the client
federation({
name: 'app',
remotes: {
remoteApp: 'http://127.0.0.1:5001/assets/remoteEntry.js',
},
shared: ['solid-js'],
}),
federation({
name: 'app',
remotes: {
remoteApp: 'http://127.0.0.1:5001/assets/remoteEntry.js',
},
shared: ['solid-js'],
}),
5 replies