originjs / vite-plugin-federation

Module Federation for vite & rollup
Other
2.24k stars 233 forks source link

Error accessing remoteEntry.js files throughout vite examples #598

Open v3nt opened 4 months ago

v3nt commented 4 months ago

ie "vue3-demo-esm-shared-store"

pnpm serve

Uncaught TypeError: Failed to fetch dynamically imported module: http://localhost:5101/assets/remoteEntry.js

Versions

Reproduction

Download repo navigate to vue3-demo-esm-shared-store ppm install @originjs/vite-plugin-federation will need installing in every microFE too. ppm serve use browser to open up host MFE blank page open inspector to see errors.

Steps to reproduce

What is Expected?

remoteEntry.js should be accessible

What is actually happening?

Its not and same issue on all vite based examples.

Screenshot 2024-05-05 at 20 37 02

thanks, D.

alexyork commented 4 months ago

@v3nt I am experiencing the same issue. Did you figure it out?

val1991 commented 2 months ago

any updates?