-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Problem of package development using GraphQL #1358
Comments
Ah, sorry, found pull request and understood, that this can be suppressed by seting node env to production |
@terion-name Note: that by disabling this check you don't solve the underlying problem there is very high chance that |
@IvanGoncharov yes, it didn't solve the problem :( Any ideas how to handle this? |
@terion-name Can you please run |
You almost certainly have multiple instances of the GraphQL.js module being pulled in and interacting with each other. This can happen when you attempt to use multiple different versions. Yarn's |
@leebyron resolutions doesn't work. because, as I've written, I am linking a package that is in develop to project it is developed for via yarn link. So they, are in different places and have different node_modules |
@IvanGoncharov in project:
in package (that is linked and which code causes error):
|
@terion-name I see. I can't think of any good solution to this problem that we could implement inside |
@IvanGoncharov ok, I've found a workaround: remove node_modules in developing package and add it to test project with This has drawbacks, like problems with build of package and need to re-add on each change, but this is better than nothing |
I develop a package that uses graphql. It has peerDeps:
Using standart package development flow, I make a repo of this package, link it with
yarn link
, then go to test project and add it viayarn link package/name
.And on
printSchema
in the package I get:resolutions
in both packages don't work.And I see no options to suppress this behavior.
I think that there should be such option, to suppress this check on such cases (maybe via env variable or something else), in other case I don't understand, how to develop and check packages locally
The text was updated successfully, but these errors were encountered: