Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot use e "__Schema" from another module or realm. #487

Open
LuXDAmore opened this issue Nov 22, 2019 · 0 comments
Open

Error: Cannot use e "__Schema" from another module or realm. #487

LuXDAmore opened this issue Nov 22, 2019 · 0 comments
Labels
appsync-core Related to core updates within AppSync SDK SSR to-be-reproduced We need to reproduce this issue

Comments

@LuXDAmore
Copy link

Do you want to request a feature or report a bug?

馃悶 Bug

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. Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior.

What is the current behavior?

"Building" with NODE_ENV="staging", cause the graph-ql resolution to not get the proper version.

A solution could be to upgrade GraphQL from 0.13.0 to the latest one 14.0.0.

What is the expected behavior?

No errors.
This problem doesn't seems to happen with NODE_ENV="development" or NODE_ENV="production"

Seems the same of: #3190, #4194,#1445, #4217, ecc..

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?

I'm using NuxtJs (Vue) with the @nuxt/apollo-module, but the problem happen only when using the aws-appsync SDK:

// AWS AppSync
import AWSAppSyncClient from 'aws-appsync';

new AWSAppSyncClient(
    AWS_CONFIG,
);
@elorzafe elorzafe added appsync-core Related to core updates within AppSync SDK SSR to-be-reproduced We need to reproduce this issue labels Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appsync-core Related to core updates within AppSync SDK SSR to-be-reproduced We need to reproduce this issue
Projects
None yet
Development

No branches or pull requests

2 participants