Closed codemaster08240328 closed 5 months ago
Here is the screenshot which shows node module packages. https://share.getcloudapp.com/qGuvj7Zp
Same here when using Gatsby, and I can reproduce the issue by upgrading gatsby
to 2.24.77
as my docs build are now failing -- It appears that Amplify is requiring an older version of graphql
client while other libs like gatsby
are requiring a more up-to-date minor version.
$ aws-lambda-powertools-python@ /Users/lessa/DEV/aws-lambda-powertools-python/docs: npm ls graphql
├─┬ aws-amplify@3.3.3
│ ├─┬ @aws-amplify/api@3.2.6
│ │ └─┬ @aws-amplify/api-graphql@1.2.6
│ │ └── graphql@14.0.0 <-- HERE
│ └─┬ @aws-amplify/pubsub@3.2.4
│ └── graphql@14.0.0
└─┬ gatsby@2.24.77
├─┬ gatsby-cli@2.12.107
│ └─┬ gatsby-recipes@0.2.31
│ └── UNMET PEER DEPENDENCY graphql@14.7.0 <-- HERE
├─┬ gatsby-plugin-page-creator@2.3.32
│ └── graphql@14.7.0
└── UNMET PEER DEPENDENCY graphql@14.7.0
Sorry for the delay here. Will add urgency to the PR here. Thank you
Closing this as graphql has since been upgraded and this is no longer reproducible in Gen 2.
If anyone runs into a similar issue with Amplify Gen 2, please open a new issue with new reproduction steps.
Describe the bug Uncaught Error: Cannot use e "__Schema" 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.
To Reproduce aws-amplify: ^3.0.23 react-app-rewired: ^2.1.6
yarn: 1.22.5 node: 12.10.0
when I run yarn start ( react-app-rewired start), it throws the above error.
Expected behavior A clear and concise description of what you expected to happen.
My package.json
Any Idea?