Incompatible dependencies / not possible to use npc ci
I was using version 22 before and this fails now when installing because of updated dependencies. But even when installing the latest it does not work.
Box UI Elements requires immutable@^3.7.4 @box/box-ai-content-answers requires immutable@^4.0.0
We used to be able to override the incompatible versions in the past but it seems not to work anymore. Please fix this because we need to be able to do npm ci for consistent deployments. This can now only be installed with npm install --legacy-peer-deps which results in a lock file that npm ci does not accept. Or is there a way around this?
Steps to reproduce the problem:
$ npm --version
10.9.2
$ node --version
v22.13.0
Latest:
npx create-vite@latest test-box-ui --template vanilla && cd test-box-ui && npm install box-ui-elements
│
◇ Scaffolding project in /Users/michael/sites/agendalink/test-box-ui/test-box-ui/test-box-ui/test-box-ui...
│
└ Done. Now run:
cd test-box-ui
npm install
npm run dev
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @box/[email protected]
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^11.12.0" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"*" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @box/blueprint-web@"^7.31.1" from @box/[email protected]
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
Version 22.0.0:
npx create-vite@latest test-box-ui --template vanilla && cd test-box-ui && npm install [email protected]
│
◇ Scaffolding project in /Users/michael/sites/agendalink/test-box-ui/test-box-ui/test-box-ui...
│
└ Done. Now run:
cd test-box-ui
npm install
npm run dev
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/immutable
npm error peer immutable@"^4.0.0" from @box/[email protected]
npm error node_modules/@box/box-ai-content-answers
npm error peer @box/box-ai-content-answers@"^0.57.1" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"22.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer immutable@"^3.7.4" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"22.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/michael/.npm/_logs/2025-07-01T17_08_25_473Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/michael/.npm/_logs/2025-07-01T17_08_25_473Z-debug-0.log
The install works with legacy peer deps:
$ npm install box-ui-elements --save --legacy-peer-deps
added 2 packages, and audited 16 packages in 3s
5 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
But then nom ci still fails
$ npm ci
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @box/[email protected]
npm error Found: @box/[email protected]
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^11.12.0" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"^23.3.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @box/blueprint-web@"^7.31.1" from @box/[email protected]
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"^23.3.0" from the root project
npm error
npm error Conflicting peer dependency: @box/[email protected]
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^7.31.1" from @box/[email protected]
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from [email protected]
npm error node_modules/box-ui-elements
npm error box-ui-elements@"^23.3.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/michael/.npm/_logs/2025-07-01T17_17_54_884Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/michael/.npm/_logs/2025-07-01T17_17_54_884Z-debug-0.log
It extreamly strange that Box writes in their documentation how to install legacy deps instead of keep updated their own packages. I mean it is a SAAS company, this SDK is one of their products. It's like selling a TV with note "remote is not working, but you can fix it at home", ridiculus.