vite-plugin-federation icon indicating copy to clipboard operation
vite-plugin-federation copied to clipboard

Error accessing remoteEntry.js files throughout vite examples

Open v3nt opened this issue 1 year ago • 5 comments

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

pnpm serve

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

Versions

  • vite-plugin-federation: @originjs/vite-plugin-federation 1.3.5

  • vite: devDependencies: vite 4.0.5

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.

v3nt avatar May 05 '24 19:05 v3nt

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

alexyork avatar May 07 '24 06:05 alexyork

any updates?

val1991 avatar Jul 03 '24 07:07 val1991

have you built it?

LeeeeeeM avatar Sep 05 '24 05:09 LeeeeeeM

looks like you forgot pnpm build command

yashug avatar Sep 09 '24 08:09 yashug

have this problem been resolved ?

ifihavewings avatar Apr 14 '25 03:04 ifihavewings