apollo-scalajs
apollo-scalajs copied to clipboard
Fix example
trafficstars
fixes #58
There were two issues here:
- npm
7.6.3was 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: [email protected]
[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 [email protected]
[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.
- Since apollo-cli is added as a devDependency, but the command executed the globally installed version, there was a confusion with the versions. Using
npxshould ensure that theapolloinstalled inside the project is used.
@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/