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
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
I'm using TypeORM and trying to use graphqlgen to generate resolver types.
Steps to reproduce
Create a project with TypeORM and graphql-yoga, created a TypeORM Entity (model/table).
Installed graphqlgen globally.
created graphqlgen.yml file with following content:-
(node:283) UnhandledPromiseRejectionWarning: SyntaxError: This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (4:0) at _class.raise (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:4028:15) at _class.expectOnePlugin (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:5378:18) at _class.parseDecorator (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7645:10) at _class.parseDecorators (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7627:28) at _class.parseStatement (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7475:12) at _class.parseBlockOrModuleBlockBody (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8046:23) at _class.parseBlockBody (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8033:10) at _class.parseTopLevel (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7443:10) at _class.parse (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8876:17) at Object.parse (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:10907:38) (node:283) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:283) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Versions
graphqlgen: 0.4.0
OS name and version: ubuntu 18.04
The text was updated successfully, but these errors were encountered:
Description
I'm using TypeORM and trying to use graphqlgen to generate resolver types.
Steps to reproduce
Create a project with TypeORM and graphql-yoga, created a TypeORM Entity (model/table).
Installed graphqlgen globally.
created graphqlgen.yml file with following content:-
Actual results
(node:283) UnhandledPromiseRejectionWarning: SyntaxError: This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (4:0) at _class.raise (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:4028:15) at _class.expectOnePlugin (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:5378:18) at _class.parseDecorator (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7645:10) at _class.parseDecorators (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7627:28) at _class.parseStatement (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7475:12) at _class.parseBlockOrModuleBlockBody (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8046:23) at _class.parseBlockBody (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8033:10) at _class.parseTopLevel (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:7443:10) at _class.parse (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:8876:17) at Object.parse (/usr/local/lib/node_modules/graphqlgen/node_modules/@babel/parser/lib/index.js:10907:38) (node:283) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:283) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Versions
The text was updated successfully, but these errors were encountered: