0
I have Graphql in the dev Local machine along with a Gem Graphiql where I can do my queries, but on the test server I can’t access this page .../graphiql
.
The white screen is written Loading...
and never carries.
I’m using
Ruby 2.2.10
Rails 3.2.22
All Gems are installed in both environments;
Returns an error in the browser console:
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.
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.
The following is an excerpt from the gemfile which refers to graphQL
group :Development, :test of the In 'Pry-byebug' end
group :staging, :Production do In 'Unicorn' end
Gem 'test-Unit' Gem 'graphql' group :Development, :master do Gem 'graphiql-Rails' end
Hello. Put your Gemfile here too.
– Rafael Gomes Francisco
This is the part that refers to Graph group :Development, :test of Gem 'Pry-byebug' end group :staging, :Production of Gem 'Unicorn' end Gem 'test-Unit' Gem 'graphql' group :Development, master of Gem 'graphiql-Rails' end
– Carlos Henrique Moreira Dos S.