spectrum-css icon indicating copy to clipboard operation
spectrum-css copied to clipboard

NPM is unable to resolve actionbutton with breadcrumbs

Open davidkudera opened this issue 2 years ago • 0 comments

Description

@spectrum-css/breadcrumbs can not be installed alongside @spectrum-css/actionbutton. This affects new projects as well as running npm ci on existing projects.

It looks like the same problem that was happening here - https://github.com/adobe/spectrum-css/issues/1450

Steps to reproduce

  1. npm install --save @spectrum-css/actionbutton - installs version 2.1.2
  2. npm install --save @spectrum-css/breadcrumb

output:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @spectrum-css/[email protected]
npm ERR! node_modules/@spectrum-css/actionbutton
npm ERR!   @spectrum-css/actionbutton@"^2.1.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @spectrum-css/actionbutton@"^1.1.13" from @spectrum-css/[email protected]
npm ERR! node_modules/@spectrum-css/breadcrumb
npm ERR!   @spectrum-css/breadcrumb@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Expected behavior

To be able to install multiple @spectrum-css/* packages within one project.

Screenshots

Environment

  • node: 16.16.0
  • npm: 8.11.0

Additional context

davidkudera avatar Aug 17 '22 14:08 davidkudera