You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/Users/mike/Documents/depots/IDLE/server/lib/index.js:23:13)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
Enviorment (please complete the following information):
OS: macOS
Node : v12.12.0
Package version : npm v6.12.0
TypeScript version : ^3.7.3
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems like the @arg annotation doesn't work in my resolver => https://github.com/MikyStar/IDLE/blob/typegraphql/server/src/graphql/User.ts line 56
To Reproduce
Just clone my repository https://github.com/MikyStar/IDLE, cd server && npm i && npm start
Expected behavior
Being able to use arguments in my mutations and querries
Logs
[...]/IDLE/server/lib/graphql/User.js:135
async login(@(0, _typeGraphql.Arg)("token")
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/Users/mike/Documents/depots/IDLE/server/lib/index.js:23:13)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
Enviorment (please complete the following information):
The text was updated successfully, but these errors were encountered: