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
When I connect my other module to the main application using npm link, an error appears: "Cannot use GraphQLObjectType "Query" from another module or realm."
Graphql versions are the same in both modules.
There are no other graphics folders in the node_modules folder
All versions of graphql in npm ls are identical. What could be the problem?
GraphQL added to peerDependencies in the plug-in
The options with the removal of package-lock, resolution and npm dedupe did not work. And the problem only occurs with npm link.
The text was updated successfully, but these errors were encountered:
This is expected yes, you can use an alias to always resolve to the local node_modules or ensure that you use a link (unlike npm) which won't allow usage of node_modules of the symlinked package.
The issue here is that you symlink to a second folder which has its own version of GraphQL while if you build and publish that library/... you will mark graphql as external and add it to peerDependencies hence this won't happen.
Closing due to inactivity - do note my prior response that this is a common issue and either can be solved through using an alias or explicitly marking graphql as external in your library. Similar issues are present in i.e. React
When I connect my other module to the main application using npm link, an error appears: "Cannot use GraphQLObjectType "Query" from another module or realm."
The text was updated successfully, but these errors were encountered: