Open RobinBomkamp opened 4 days ago
I'm encountering the same issue with my SvelteKit project. It looks like it tries to use require
server side which fails because it's not a browser environment
@RobinBomkamp can you share a repo with a basic example to reproduce the issue please?
I saw the steps, thanks
I have build a simple Stackblitz example: https://stackblitz.com/edit/vitejs-vite-wpl99h?file=vite.config.ts&terminal=dev
You have to quit the dev build in the terminal and execute npm start
.
Thanks @RobinBomkamp I'm glad you have a fallback with v0.2.8, I'll check how to fix the new version in these days.
I run into the same error.
@Thiedze are you using SvelteKit too?
Yes @gioboa
Hey there,
we are having an issue with the version
1.1.3
of this package and a SvelteKit application.Works with previous version:
Yes, it used to work with the version
0.2.8
.Steps to reproduce:
npm create svelte@latest mf
<button>Test</button>
npm add @module-federation/vite --save-dev
npm run build
Error:
Now we are experiencing the following error.
Addition:
Even changing the module federation config to following produces the error:
Our guess
It has something to do with SSR.