You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
[info] Loading settings for project global-plugins from plugins.sbt ...
[info] Loading global plugins from /home/felix/.sbt/1.0/plugins
[info] Loading settings for project apollo-scalajs-build from plugins.sbt ...
[info] Loading project definition from /tmp/tmp.4XopoXrhQQ/apollo-scalajs/project
[info] Loading settings for project apollo-scalajs from build.sbt ...
[info] Loading settings for project example from build.sbt ...
[info] Loading settings for project tests from build.sbt ...
[info] Loading settings for project react from build.sbt ...
[info] Loading settings for project core from build.sbt ...
[info] Set current project to apollo-scalajs (in build file:/tmp/tmp.4XopoXrhQQ/apollo-scalajs/)
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
Loading Apollo Project [started]
Loading Apollo Project [completed]
Generating query files [started]
Generating query files with 'scala' target [title changed]
Generating query files with 'scala' target [failed]
→ Cannot use GraphQLObjectType "Query" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
Error: Cannot use GraphQLObjectType "Query" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of
other
relied on modules, use "resolutions" to ensure only one version is
installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
| => example / Compile / managedSources 3s
Duplicate "graphql" modules cannot be used at the same time since
different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
[info] Compiling 4 Scala sources to /tmp/tmp.4XopoXrhQQ/apollo-scalajs/example/target/scala-2.12/classes ...
[error] [E-1] IO error while decoding /tmp/tmp.4XopoXrhQQ/apollo-scalajs/example/target/scala-2.12/src_managed/main/graphql.scala with UTF-8: /tmp/tmp.4XopoXrhQQ/apollo-scalajs/example/target/scala-2.12/src_managed/main/graphql.scala (No such file or directory)
[error] Please try specifying another one using the -encoding option
[info] Legend: Ln = line n, Cn = column n, En = error n
[info] Updating NPM dependencies
[info] added 19 packages, removed 45 packages, changed 21 packages, and audited 1119 packages in 11s
[info] 59 packages are looking for funding
[info] run `npm fund` for details
[info] 10 vulnerabilities (4 low, 3 moderate, 3 high)
[info] To address issues that do not require attention, run:
[info] npm audit fix
[info] To address all issues, run:
[info] npm audit fix --force
[info] Run `npm audit` for details.
[error] (example / Compile / compileIncremental) Compilation failed
[error] Total time: 17 s, completed Apr 2, 2021 6:50:00 PM
What I already tried:
useYarn := true
check node_modules folders (project and global) and lock-files for other graphql dependencies
upgrading apollo dependencies apollo and @apollo/client
npmResolutions in Compile := Map("graphql" -> "14.7.0") in build.sbt
I'm trying to run the example like this:
And then I get the following error:
What I already tried:
useYarn := true
node_modules
folders (project and global) and lock-files for othergraphql
dependenciesapollo
and@apollo/client
npmResolutions in Compile := Map("graphql" -> "14.7.0")
inbuild.sbt
all versions look fine (with
npmResultions
):Seems to be related to: graphql/graphql-js#491
The text was updated successfully, but these errors were encountered: