originjs / vite-plugin-federation

Module Federation for vite & rollup
Other
2.39k stars 241 forks source link

Error accessing remoteEntry.js files throughout vite examples #598

Open v3nt opened 6 months ago

v3nt commented 6 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 6 months ago

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

val1991 commented 4 months ago

any updates?

LeeeeeeM commented 2 months ago

have you built it?

yashug commented 2 months ago

looks like you forgot pnpm build command