Title
p

picosam

04/28/2018, 6:26 PM
Hello, anyone getting the following after upgrading to the latest graphql-yoga:
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

tom.mcclelland

04/29/2018, 1:39 AM
We got this same error today. That fix works for now. Anyone else have this issue or know about it?
j

Julien

04/29/2018, 1:36 PM
I'm hitting the same after upgrading my project to latest. Where did you put this line?
p

picosam

04/29/2018, 1:40 PM
In the
index.ts
file where you actually bootstrap the server
j

Julien

04/29/2018, 1:42 PM
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

nilan

04/30/2018, 2:53 PM
@picosam @tom.mcclelland @Julien this is now fixed in the latest version
p

picosam

04/30/2018, 2:54 PM
I confirm. Thanks @nilan!
šŸ‘Œ 1