-
Notifications
You must be signed in to change notification settings - Fork 575
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
Update to graphql 0.13.0 crashes subscriptions #162
Comments
After a rollback to a previous version it works again
|
Same Issue. "dependencies": { |
Same. I had to add resolutions [email protected] in package.json and subscriptions don't work correctly |
We're looking into this! 🕵️ |
getting a similar error here https://imgur.com/a/nMqHG |
Can you all please try to update |
@schickling Works for me! 💯 Thanks! 🎉 ✨ |
👋I'm seeing the same error using the My dependencies look like this: "dependencies": {
"bcryptjs": "2.4.3",
"graphql-yoga": "1.3.3",
"jsonwebtoken": "8.1.1",
"prisma-binding": "1.5.12"
},
"devDependencies": {
"@types/bcryptjs": "2.4.1",
"dotenv-cli": "1.4.0",
"graphql-cli": "2.14.2",
"nodemon": "1.15.1",
"npm-run-all": "4.1.2",
"prisma": "1.2.4",
"rimraf": "2.6.2",
"ts-node": "4.1.0",
"typescript": "2.7.2"
} |
Hi, I had the same problem, finally solved by removing yarn (sudo npm remove -g yarn) before prisma init, and then install it again (sudo npm install -g yarn) before "yarn dev"... |
For everyone still having problems with this, please try the following things if the error still appears:
|
@niclone glad it works for you now, reinstalling Hopefully this all will go a lot smoother for future |
@schickling : resintall yarn is not the solution, the solution is to have it UNINSTALLED during prisma init. |
I wish I could find the relevant issue but I haven't been able to find it... From what I remember, the issue is that Yarn tries to install Also, from what I remember, it also has to do with setting |
This doesn't work: yarn upgrade-interactive --latest
rm -rf node_modules
yarn install
yarn dev I'm still getting the duplicate graphql error. But this works: yarn upgrade-interactive --latest
rm -rf node_modules
npm install
yarn dev or you add to package.json: "resolutions": {
"graphql": "^0.13.0"
} |
Sounds like you may need to clear yarn's cache
|
Thanks for pointing this out @tobkle. Add the following to your "resolutions": {
"graphql": "0.13.1"
} |
@schickling I am still getting this very issue, even after adding the resolutions property to the package.json. The only thing that worked for me was downgrading to 1.2.4, anything higher would always cause the issue. I also had to use |
By now all packages have been updated, so with the newest package versions this should now work even without the |
For anyone still running into this, upgrading |
This issue is still happening for me with |
I'm also getting this issue here: |
Getting this issue after using |
Hey, @Urigo from The Guild here! You might know us from projects such as graphql-code-generator, envelop or graphql-tools. For a long time we thought that the Javascript ecosystem is still missing a lightweight cross-platform, but still highly customizable GraphQL Server. In the past the awesome Prisma team took on that great challenge and now we are happy to announce that we are continuing them and just released GraphQL Yoga 2.0 - Build fast, extensible, and batteries-included (Subscriptions, Serverless, File uploads support) GraphQL APIs in Node.js 🚀 We have been working a long time on version 2.0 and have been using it in our clients projects for a few months now and shared a couple of alpha cycles here. Please try Yoga out again, give us feedback and help us spread the word on the new release! |
Update:
Add the following to your
package.json
and runyarn install
. This should fix the problem:After updating to graphql-yoga to 1.2.5 subscriptions are not working anymore because of duplicated graphql version. And a lot of warnings are throwing on yarn installation -> i think that the deps are not compatible with 0.13.0
Cannot use GraphQLSchema “[object Object]” 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 text was updated successfully, but these errors were encountered: