express-typescript-boilerplate icon indicating copy to clipboard operation
express-typescript-boilerplate copied to clipboard

GraphQL issue

Open amorev opened this issue 5 years ago • 0 comments

Firsly thank you for such awesome boilerplate!

The first problem is connected with #176 but I solved it by copypaste:)

But I had another problem After fresh install dev server works fine! But if I try build it I'll have an error like this

node_modules/graphql-query-complexity/dist/QueryComplexity.d.ts:6:16 - error TS2665: Invalid module name in augmentation. Module 'graphql/type/definition' resolves to an untyped module at 'D:/work/projects/wormsoft/wormflow/api/node
_modules/graphql/type/definition.js', which cannot be augmented.
6 declare module 'graphql/type/definition' {

If I change version of graphql dependency to 14.2.1 and adding

"@types/graphql": "14.2.3",

to package.json solves the problem. Maybe I did something wrong while creating empty project. If this problem is not only in my life, I can create PR:)

amorev avatar Jun 01 '20 20:06 amorev