Apollo-server: Missing 'graphql-tag' module in 2.0.0-beta.5

Created on 8 Jun 2018  路  11Comments  路  Source: apollographql/apollo-server

I believe I found an issue in the latest beta (2.0.0-beta.5).

How to reproduce

  1. Checkout https://github.com/apollographql/graphql-server-example.
  2. Run npm i and node index.js.
  3. You should get the following error:
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)

Most helpful comment

We just published 2.0.0-beta.9, which includes graphql-tag ad a dependency

All 11 comments

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.

Thanks @evans

We just published 2.0.0-beta.9, which includes graphql-tag ad a dependency

Was this page helpful?
0 / 5 - 0 ratings