advanced project cannot find module 'graphql-yoga'
nampdn opened this issue · comments
I just install a new project of an advanced template. After the installation, I cd to the project folder and do yarn dev
. Everything is up except that it throws error like this:
TSError: ⨯ Unable to compile TypeScript
src/index.ts (1,31): Cannot find module 'graphql-yoga'. (2307)
at getOutput (/Users/projects/graph/node_modules/ts-node/src/index.ts:329:15)
I did rimraf node_modules and reinstall dependencies again by yarn
and npm install
, but neither works. I checked that graphql-yoga
already specified in dependencies.
Thanks for bringing this up, @nampdn, and thanks for the workaround @gbouteiller.
This was now fixed in graphql-yoga@1.13.1
, and the boilerplates have been upgrade to use this version.