-
-
Notifications
You must be signed in to change notification settings - Fork 571
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphiQL produces error: Cannot use e "__Schema" from another module or realm. #677
Comments
Ugh; it worked locally. I'll get another release shipped. |
3.5.6 is out which fixes this; I've specifically installed graphql v0.11 locally before building/publishing. |
And postgraphile@4.0.0-alpha2.30 |
Hi @benjie, what would be the ETA on the docker image build also reflecting the update? Thanks! Update: The error still seems to be showing for me on /graphiql on |
The docker images will need manual fixing to pin graphql to v0.11 as v0.12 breaks minification. I would pin it in the package.json, but doing so would be a breaking change. Paging @angelosarto |
Will take a look tonight should be straightforward.
…On Wed, Jan 31, 2018 at 4:33 PM Benjie Gillam ***@***.***> wrote:
The docker images will need manual fixing to pin graphql to v0.11 as v0.12
breaks minification. I would pin it in the package.json, but doing so would
be a breaking change. Paging @angelosarto <https://github.com/angelosarto>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#677 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABefi6dXjOeCLf7jUXcZ3WO3PqjPMimvks5tQOpJgaJpZM4Ryo_h>
.
|
Thanks @angelosarto! 🙏 |
GraphiQL produces error: Cannot use e "__Schema" from another module or realm. graphile#677 Pin the version of graphql to < 0.12 in the package.json right before the npm build.
If the above PR is merged - docker should automatically rebuild and it will temporary pin the version before the package is built. I tried it locally and it seems fine. |
GraphiQL produces error: Cannot use e "__Schema" from another module or realm. #677 Pin the version of graphql to < 0.12 in the package.json right before the npm build.
Merged 👍 |
Getting the same, above noted error, with version "postgraphile@4.0.0-alpha2.33" Im running through the tutorial and trying to run the following command Im getting this error in the console:
Enviroment: |
Follow the yarn resolution instructions in the error message to ensure there’s only one version of graphql installed. Probably 0.11.x |
Yarn resolution worked for me: "dependencies": { |
any solution for npm? have exactly the same as @MichaelG02 |
For yarn you’d do this: https://stackoverflow.com/questions/51990179/run-postgraphile-with-npm/51990635#51990635 Here’s some comments about it on the GraphQL repo, perhaps there might be something there that might point you somewhere useful for npm: graphql/graphql-js#594 (comment) I don’t use npm, but if you get a solution please report back 👍 |
“npm dedupe” might work. Use 0.12.x if you can. |
@benjie thank you for pointing the right direction. I did try |
I get this error despite running postgraphile with npx. Any tips? |
Do it in a clean folder whose ancestors have no node_modules folders |
@benjie running it from root fixed the issue. Thank you! |
I'm submitting a ...
PostGraphQL version: 3.5.5
Steps to reproduce:
I run
postgraphql -c postgres://user@localhost/db
I've tried with postgraphql installed globally or locally; possibly related to minifaction graphql/graphql-js#1182
Current behavior:
The text was updated successfully, but these errors were encountered: