You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run npm run build. It should build fine
run npm run serve. It should serve the module on port 5002
you can navigate to http://localhost:5002 to confirm the site starts
2. Header module
run npm run build. It should build fine
run npm run serve. It should serve the module on port 5001
you can navigate to http://localhost:5001 to confirm the site starts
3. Portal module
run npm run dev. It should run the portal and the header should be displayed
Here you can notice a thing. The vue-router is not shared (visible because no link are highlighted) whereas they were highlighted when runing http://localhost:5001 directly.
But that is not the major issue here.
I probably know what the reason for the failure is, because federation's shared only looks under node_modules, not according to its own remotes, so it can't find auth modules
Versions
Reproduction
go to: https://github.com/ChristPetitjean/BUG-vite-plugin-federation
1. Auth module
run
npm run build
. It should build finerun
npm run serve
. It should serve the module on port 5002you can navigate to http://localhost:5002 to confirm the site starts
2. Header module
run
npm run build
. It should build finerun
npm run serve
. It should serve the module on port 5001you can navigate to http://localhost:5001 to confirm the site starts
3. Portal module
run
npm run dev
. It should run the portal and the header should be displayedHere you can notice a thing.
The vue-router is not shared (visible because no link are highlighted) whereas they were highlighted when runing http://localhost:5001 directly.
But that is not the major issue here.
Steps to reproduce
To reproduce switch to the branch: bug-remotes-exposes: https://github.com/ChristPetitjean/BUG-vite-plugin-federation/tree/bug-remotes-exposes
Or open the pull request to see differences: ChristPetitjean/BUG-vite-plugin-federation#1
What is Expected?
Header module is able to build
What is actually happening?
When activating auth module in header (so header have remotes and exposes configured), it will not build at all.
The text was updated successfully, but these errors were encountered: