This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7629a30a-05fb-4080-bb95-9a4035395975 XWIKI-24753 Open

vue-router and inversify are declared both as dependencies and peerDependencies of published node packages

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-60c6c7ce-1c64-42ce-a0e7-fb5228fe961b Manuel Leduc created this issue on 27/Aug/26 16:25
 
Summary: vue-router and inversify are declared both as dependencies and peerDependencies of published node packages
Issue Type: cid:jira-generated-image-avatar-7629a30a-05fb-4080-bb95-9a4035395975 Bug
Affects Versions: 17.10.0
Assignee: Unassigned
Components: Node
Created: 27/Aug/26 16:25
Priority: cid:jira-generated-image-static-major-5d5a2c42-1be8-4dc8-a50d-b8d34d69181e Major
Reporter: Manuel Leduc
Description:

@xwiki/platform-api declares vue-router both in dependencies (as catalog:, i.e. published as an exact pin — currently 5.2.0) and in peerDependencies (5.x). @xwiki/platform-editors-blocknote-react does the same with inversify. In both packages the library only appears in import type statements, so it is a peer dependency and not a runtime one.

The double declaration breaks any consumer that provides a different, yet peer-compatible, version of the library: pnpm satisfies the peer from the consumer's own resolution and never materialises the exactly-pinned copy, so a tool that reads the published dependencies literally finds nothing.

Cristal, which pins vue-router 5.0.3, can no longer package its Electron application at all — electron-builder aborts with:

production dependency not found  parent=@xwiki/platform-api dependency=vue-router version=5.2.0
Production dependency vue-router not found for package @xwiki/platform-api

Every Cristal Electron CI build has failed since 2026-07-30 for this reason.

The fix is to drop the dependencies entries, keep the peerDependencies declaration, and keep (or add) the devDependencies entry that local typecheck and build need.

 
 

1 update

 
cid:jira-generated-image-avatar-60c6c7ce-1c64-42ce-a0e7-fb5228fe961b Changes by Manuel Leduc on 27/Aug/26 16:25
 
Fix Version: 18.7.0