Graphql-tools: 3.0.3 broken

Created on 25 Jun 2018  路  5Comments  路  Source: ardatan/graphql-tools

3.0.3 just got pulled in. It's failing with:

Error: Cannot find module './generate'
    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)

Looks like the dist folder for publishing doesn't have the generate folder included.
screen shot 2018-06-25 at 2 32 43 pm

blocking

Most helpful comment

We were plagued by this on ^3.0.2 too.
Fresh installs exhibited this issue.

Changed to ^3.0.4 and issue is now fixed.

All 5 comments

@hwillson

Thanks @nathanchapman - yes, 3.0.4 should now fix this (https://github.com/apollographql/graphql-tools/commit/513108b1a6928730e347191527cba07d68aadb74). For some reason dist/generate was excluded from the 3.0.3 bundle when published. I tweaked the .npmignore and it's now included, but I'm scratching my head a bit around how it worked in 3.0.2. Maybe a difference in npm versions used for the publish ... 馃. Regardless, please give 3.0.4 a shot and let me know if that fixes it for you.

I was on 3.0.2 and got the same error :sweat_smile:

We were plagued by this on ^3.0.2 too.
Fresh installs exhibited this issue.

Changed to ^3.0.4 and issue is now fixed.

Great to know @cy @advance512 - thanks! Okay, that helps explain a lot. This issue should be fixed now moving forward. Thanks again!

Was this page helpful?
0 / 5 - 0 ratings