I believe I found an issue in the latest beta (2.0.0-beta.5).
npm i and node index.js. module.js:549
throw err;
^
Error: Cannot find module 'graphql-tag'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/git/graphql-server-example/node_modules/apollo-server/node_modules/apollo-server-core/dist/index.js:25:21)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Pinging @evans as this bricks the release :)
A temp workaround is to install the dependency directly e.g. yarn add graphql-tag
Encountered the same exact problem.
Same problem for me too
Same problem.
Same problem.
Just add
npm install --save graphql-tag
It resolved my issue
@sachinrajgire it does but I reckon the underlying missing package should be added by apollo-server.
So @sachinrajgire, the correct would be the apollo-server contain this lib and I do not add it after hitting on an error for lack of adding dependencies.
Sorry about that! https://github.com/apollographql/apollo-server/pull/1125/commits/83c866e8d447b1510c268ccf6b592aa008d5b2d4 will be in the next release in a couple of hours
Thanks @evans
We just published 2.0.0-beta.9, which includes graphql-tag ad a dependency
Most helpful comment
We just published 2.0.0-beta.9, which includes graphql-tag ad a dependency