Cannot use GraphQLSchema "[object GraphQLSchema]" from another module or realm.
When I trying to update canary release from version 2.5.35 => 2.5.93(86-93) via docker-compose I've got error in logs
2020-08-22T21:14:53.588Z [MASTER] error: Cannot use GraphQLSchema "[object GraphQLSchema]" from another module or realm.
The last version wich can be upgraded and works well it's 2.5.85
# docker logs ks_wikijs_cab -f
Loading configuration from /wiki/config.yml... OK
2020-08-22T21:14:46.901Z [MASTER] info: =======================================
2020-08-22T21:14:46.905Z [MASTER] info: = Wiki.js 2.5.93 ======================
2020-08-22T21:14:46.905Z [MASTER] info: =======================================
2020-08-22T21:14:46.906Z [MASTER] info: Initializing...
2020-08-22T21:14:48.170Z [MASTER] info: Using database driver pg for postgres [ OK ]
2020-08-22T21:14:48.222Z [MASTER] info: Connecting to database...
2020-08-22T21:14:48.275Z [MASTER] info: Database Connection Successful [ OK ]
2020-08-22T21:14:50.689Z [MASTER] warn: Mail is not setup! Please set the configuration in the administration area!
2020-08-22T21:14:51.140Z [MASTER] info: Loading GraphQL Schema...
2020-08-22T21:14:53.311Z [MASTER] info: GraphQL Schema: [ OK ]
2020-08-22T21:14:53.588Z [MASTER] error: Cannot use GraphQLSchema "[object GraphQLSchema]" 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.
Host Info
- OS: [Debian GNU/Linux 10 (buster), Docker]
- Wiki.js version: [2.5.85-93]
- Database engine: [postgres 11-9-alpine]
Delete your node_modules folder and yarn again?
Works fine on my side...
@NGPixel Should I delete modules in my localhost or in container? I using docker official containers from Requarks docker regisry.
Canary images are not stable and shouldn't be used for any other purposes than dev testing.
Either use the stable version or build your own dev version from the source (but be ready to fix any issues you have yourself).
@NGPixel Thx for the answer! Is there any instructions to downgrade from canary to stable release?
No downgrade, you just run the latest stable image.