Skip to content

npm install Conflicting peer dependency: graphql-ws #4302

Closed
@OliverRC

Description

@OliverRC

Describe the bug

From a vanilla pwa-studio cli project using the defaults, you cannot npm install.
Root error Conflicting peer dependency: graphql-ws

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @apollo/client@3.5.10
npm ERR! Found: graphql-ws@4.9.0
npm ERR! node_modules/graphql-ws
npm ERR!   graphql-ws@"^4.4.1" from @graphql-tools/url-loader@6.10.1
npm ERR!   node_modules/@graphql-tools/url-loader
npm ERR!     @graphql-tools/url-loader@"^6.0.0" from graphql-config@3.4.1
npm ERR!     node_modules/graphql-config
npm ERR!       graphql-config@"^3.0.2" from eslint-plugin-graphql@4.0.0
npm ERR!       node_modules/eslint-plugin-graphql
npm ERR!         dev eslint-plugin-graphql@"~4.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional graphql-ws@"^5.5.5" from @apollo/client@3.5.10
npm ERR! node_modules/@apollo/client
npm ERR!   dev @apollo/client@"~3.5.0" from the root project
npm ERR!   peer @apollo/client@"~3.5.0" from @magento/pagebuilder@9.3.1
npm ERR!   node_modules/@magento/pagebuilder
npm ERR!     dev @magento/pagebuilder@"~9.3.1" from the root project
npm ERR!   3 more (@magento/peregrine, @magento/upward-js, @magento/venia-ui)
npm ERR! 
npm ERR! Conflicting peer dependency: graphql-ws@5.16.0
npm ERR! node_modules/graphql-ws
npm ERR!   peerOptional graphql-ws@"^5.5.5" from @apollo/client@3.5.10
npm ERR!   node_modules/@apollo/client
npm ERR!     dev @apollo/client@"~3.5.0" from the root project
npm ERR!     peer @apollo/client@"~3.5.0" from @magento/pagebuilder@9.3.1
npm ERR!     node_modules/@magento/pagebuilder
npm ERR!       dev @magento/pagebuilder@"~9.3.1" from the root project
npm ERR!     3 more (@magento/peregrine, @magento/upward-js, @magento/venia-ui)
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.
npm ERR! 
npm ERR! 

To reproduce

Steps to reproduce the behavior:

  1. Scaffold app using npx @magento/create-pwa
  2. npm install

Expected behavior

npx @magento/create-pwa should output a functional node project that allows additional requirements to be installed.

Please let us know what packages this bug is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa

Metadata

Metadata

Assignees

Labels

Issue: Needs UpdateAdditional information is require, waiting for responsebugSomething isn't workingissue: Cannot Reproducewhen issue not reproducible by internal team they might required additional info or steps missing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions