Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Fix example #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix example #59

wants to merge 1 commit into from

Conversation

fdietze
Copy link

@fdietze fdietze commented Apr 2, 2021

fixes #58

There were two issues here:

  1. npm 7.6.3 was not able to resolve the dependencies (I don't know why)
[info] Fast optimizing /tmp/tmp.4XopoXrhQQ/apollo-scalajs/example/target/scala-2.12/scalajs-bundler/main/react-apollo-scalajs-example-fastopt.js
[error] npm ERR! code ERESOLVE
[error] npm ERR! ERESOLVE unable to resolve dependency tree
[error] npm ERR! 
[error] npm ERR! While resolving: undefined@undefined
[error] npm ERR! Found: webpack@4.32.2
[error] npm ERR! node_modules/webpack
[error] npm ERR!   dev webpack@"4.32.2" from the root project
[error] npm ERR! 
[error] npm ERR! Could not resolve dependency:
[error] npm ERR! peer webpack@"^2.0.0 || ^3.0.0" from file-loader@1.1.5
[error] npm ERR! node_modules/file-loader
[error] npm ERR!   dev file-loader@"1.1.5" from the root project
[error] npm ERR! 
[error] npm ERR! Fix the upstream dependency conflict, or retry
[error] npm ERR! this command with --force, or --legacy-peer-deps
[error] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  1. Since apollo-cli is added as a devDependency, but the command executed the globally installed version, there was a confusion with the versions. Using npx should ensure that the apollo installed inside the project is used.

@apollo-cla
Copy link

@fdietze: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot compile example
2 participants