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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.0 not working in production environment #59

Closed
swelther opened this issue Nov 22, 2018 · 1 comment
Closed

1.5.0 not working in production environment #59

swelther opened this issue Nov 22, 2018 · 1 comment

Comments

@swelther
Copy link

Beginning with version 1.5.0 of this gem the GraphiQL frontend does not load in production environments. Chrome console output:

application-62bfd22d15244d19e3fe71894ec33a25361eac62e7b985cf9206122d51a6e0ae.js:22 Uncaught Error: Cannot use t "__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.

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.
    at i (application-62bfd22d15244d19e3fe71894ec33a25361eac62e7b985cf9206122d51a6e0ae.js:22)
    ....
graphiql:45 Uncaught ReferenceError: GraphiQL is not defined
    at graphiql:45

Tested with an empty Rails 5.1.4 app.

Any idea why or what? I'm not a react/node/js guy 😉

@swelther
Copy link
Author

#58 was faster :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant