fix(vue3-bridge): correct vue-router peer dependency#3603
fix(vue3-bridge): correct vue-router peer dependency#3603danpeen merged 3 commits intomodule-federation:mainfrom
Conversation
Update peerDependency for vue3-bridge to point to the version of Vue Router that is compatible with Vue 3. Closes module-federation#3567
|
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Should we support 3 || 4 to support both? |
|
Vue router 3 is only for Vue 2 so I figured 4 made sense. Not sure if this
component works with Vue 2 but the name implies it’s not meant to.
…On Mon, Mar 17, 2025 at 22:50 Zack Jackson ***@***.***> wrote:
Should we support 3 || 4 to support both?
—
Reply to this email directly, view it on GitHub
<#3603 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPYI3G5JHUZFDZL6BSW732U6CW5AVCNFSM6AAAAABZGHRT5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZRGQ3DOMJWGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: ScriptedAlchemy]*ScriptedAlchemy* left a comment
(module-federation/core#3603)
<#3603 (comment)>
Should we support 3 || 4 to support both?
—
Reply to this email directly, view it on GitHub
<#3603 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPYI3G5JHUZFDZL6BSW732U6CW5AVCNFSM6AAAAABZGHRT5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZRGQ3DOMJWGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
To follow up on my last reply, looking at the sourcecode it's using |
|
@thedamon Vue Router v4 and v3 are not compatible. They have some significant differences that make them incompatible with each other. How about we set like this: |
I think the code of this repo itself, as well as the naming, is such that it would only be compatible with vue 3 + vue-router 4. I think using it with vue-router 3 would break. I would respect the version of vue-router already present in the |
|
@thedamon Makes sense. I think only if we need to support vue2 could we make this compatible change. |
|
I was hoping you would fix react-router at the same time. warning " > @module-federation/bridge-react@0.10.0" has incorrect peer dependency "react-router-dom@^4 || ^5 || ^6" We are on v7 now, you want me to create a issue for this? |
|
whe we will see a package with thi changes? this error blocks us from using module federation at all :( |
Update peerDependency for vue3-bridge to point to the version of Vue Router that is compatible with Vue 3.
Closes #3567
Description
Updated vue-router peerDependency from 3 to 4.
This allows installing the package with npm without having to pass in
--legacy-peer-deps.Related Issue
#3567
Types of changes
Checklist