Closed sjvasconcello closed 5 years ago
Try adding the --files
flag to ts-node
https://github.com/benawad/graphql-ts-server-boilerplate/blob/master/package.json#L60
Amazing work it!! but the problem start when i use ncu -a
there this appears:
graphql-import ^0.5.0 → ^0.7.1 typeorm 0.2.0 → 0.2.9 @types/node ^9.6.6 → ^10.12.17 ts-node 6.0.0 → 7.0.1 typescript 2.8.3 → 3.2.2 graphql-yoga ^1.9.2 → ^1.16.8
maybe @types/node change something. But thanks you :D
Try adding the
--files
flag tots-node
https://github.com/benawad/graphql-ts-server-boilerplate/blob/master/package.json#L60
I found that it is okay for below: "test-server": "NODE_ENV=test ts-node-dev --respawn src/app.ts",
May I know the reason why and what did you fixed?
ts-node released a new version where it requires you to add that flag
got it. Thank you Ben.
The error reappears when setting up setup.ts
and callSetup.js
but adding the --files
flag to the "test" command returns the error: Unrecognized option "files"
@crashspringfield try NODE_ENV=test TS_NODE_FILES=true jest --forceExit
Stay ts-node on 6.x works for me.
Hi there! I don't know if you know why this happen:
return new TSError(diagnosticText, diagnosticCodes) ^ TSError: ⨯ Unable to compile TypeScript: src/resolvers.ts(6,26): error TS2503: Cannot find namespace 'GQL'. src/resolvers.ts(9,40): error TS2503: Cannot find namespace 'GQL'.
I was following all the steps in your video and well i don't know what happen
/*Greadings from Chile :D thanks for your videos*/