You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
As @lufutu suggested is not possible to use GraphiQL in production. See this comment.
Bug
Accessing GraphiQL page I see only the loading... message and get this error:
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.
Which then create a second obvious error:
Uncaught ReferenceError: GraphiQL is not defined
How to reproduce it
create a new Rails 5.2 application
install Binda 0.1.10 and Binda API master
deploy to production (on Heroku or anywhere with Capistrano)
go to http://your.domain.com/admin_panel/graphiql
check your browser console logs
Hint
The issue is probably due to GraphiQL Rails or GraphQL as they are the only responsible for injecting graphql as a dependency.
Just remember to change config/environments/production.rb from config.assets.js_compressor = :uglifier to config.assets.js_compressor = Uglifier.new(harmony: true)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As @lufutu suggested is not possible to use GraphiQL in production. See this comment.
Bug
Accessing GraphiQL page I see only the
loading...
message and get this error:Which then create a second obvious error:
How to reproduce it
5.2
application0.1.10
and Binda APImaster
http://your.domain.com/admin_panel/graphiql
Hint
The issue is probably due to GraphiQL Rails or GraphQL as they are the only responsible for injecting
graphql
as a dependency.Versions
Rails 5.2
Binda 0.1.10
Binda API master (c0c6884)
The text was updated successfully, but these errors were encountered: