Hello, anyone getting the following after upgradin...
# orm-help
p
Hello, anyone getting the following after upgrading to the latest graphql-yoga:
Copy code
Error: Cannot find module 'graphql-yoga'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/Sammy/Projects/ivnt-gql/src/index.ts:1:1)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Module.m._compile (/Users/Sammy/Projects/ivnt-gql/node_modules/ts-node/src/index.ts:402:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/Sammy/Projects/ivnt-gql/node_modules/ts-node/src/index.ts:405:12)
    at Module.load (internal/modules/cjs/loader.js:589:32)
[nodemon] app crashed - waiting for file changes before starting...
P.S. Actually even after downgrading I’m now constantly getting this message šŸ˜ž This resolved it for now:
import { GraphQLServer } from 'graphql-yoga/dist';
t
We got this same error today. That fix works for now. Anyone else have this issue or know about it?
j
I'm hitting the same after upgrading my project to latest. Where did you put this line?
p
In the
index.ts
file where you actually bootstrap the server
j
that didn't actually work for me, but I am using the node version instead. Downgrading graphql-yoga to 1.12.1 did the trick
šŸ‘ 1
n
@picosam @tom.mcclelland @Julien this is now fixed in the latest version
p
I confirm. Thanks @nilan!
šŸ‘Œ 1