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 did this, it kept on running. Even if I killed the port, it kept on running. Some weird issue. I had to close my text editor VSCode to get rid of the port from constantly running. It didn’t even work even if I killed using some unix wizardry. This used to work earlier as it’s the same code from 6 months early. I just updated dependencies after not touching it for months. Weird thing is I didn’t update graphql-yoga dependency. It was and is 1.18.3 because its the latest.
server.start(()=>console.log(`🚀 Server ready at: http://localhost:4000\n⭐️ See sample queries: http://pris.ly/e/js/graphql#6-using-the-graphql-api`,),)
But then I changed the code to the following:
constoptions={port: 4004,}server.createHttpServer(options).listen(options.port,'localhost',()=>{console.log(`🚀 Server ready at: http://localhost:${options.port}\n⭐️ See sample queries: http://pris.ly/e/js/graphql#6-using-the-graphql-api`,)})
And the port started working. Maybe it’s Prisma 2 or maybe GraphQL Yoga but thought you should know either ways. The above code looks more simpler anyways :)
The text was updated successfully, but these errors were encountered:
Hey @deadcoder0904 we @the-guild-org are the new maintainers of this project. We are actively developing v2. This should be addressed in the new version. Would love to get your feedback on beta release @graphql-yoga/node@beta
When I did this, it kept on running. Even if I killed the port, it kept on running. Some weird issue. I had to close my text editor VSCode to get rid of the port from constantly running. It didn’t even work even if I killed using some unix wizardry. This used to work earlier as it’s the same code from 6 months early. I just updated dependencies after not touching it for months. Weird thing is I didn’t update
graphql-yoga
dependency. It was and is1.18.3
because its the latest.But then I changed the code to the following:
And the port started working. Maybe it’s Prisma 2 or maybe GraphQL Yoga but thought you should know either ways. The above code looks more simpler anyways :)
The text was updated successfully, but these errors were encountered: