-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Description
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: test-box-ui@0.0.0
npm error Found: @box/blueprint-web@11.12.0
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^11.12.0" from box-ui-elements@23.3.0
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/box-ai-agent-selector@0.31.0
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from box-ui-elements@23.3.0
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 box-ui-elements@22.0.0
│
◇ 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: test-box-ui@0.0.0
npm error Found: immutable@4.3.7
npm error node_modules/immutable
npm error peer immutable@"^4.0.0" from @box/box-ai-content-answers@0.57.8
npm error node_modules/@box/box-ai-content-answers
npm error peer @box/box-ai-content-answers@"^0.57.1" from box-ui-elements@22.0.0
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 box-ui-elements@22.0.0
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/box-ai-agent-selector@0.31.0
npm error Found: @box/blueprint-web@11.12.0
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^11.12.0" from box-ui-elements@23.3.0
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/box-ai-agent-selector@0.31.0
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from box-ui-elements@23.3.0
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/blueprint-web@7.36.3
npm error node_modules/@box/blueprint-web
npm error peer @box/blueprint-web@"^7.31.1" from @box/box-ai-agent-selector@0.31.0
npm error node_modules/@box/box-ai-agent-selector
npm error peer @box/box-ai-agent-selector@"^0.31.0" from box-ui-elements@23.3.0
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
kmurphy4 and raymondcao-everlaw
Metadata
Metadata
Assignees
Labels
No labels