Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "TSError: ⨯ Unable to compile TypeScript" on startup #34

Open
dwking2000 opened this issue Jul 2, 2018 · 0 comments
Open

Comments

@dwking2000
Copy link

dwking2000 commented Jul 2, 2018

fresh pull from git
note - I do not see a directory dotenv/config

then:
yarn install --ignore-engines
yarn start

console shows:
yarn run v1.7.0
$ nodemon -e ts,graphql -x ts-node -r dotenv/config src/index.ts
[nodemon] 1.17.5
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting ts-node -r dotenv/config src/index.ts

then I get the following error:

/git/cleargraph/node_modules/ts-node/src/index.ts:253
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/index.ts(7,41): error TS2345: Argument of type '{ context: (req: any) => Context; resolvers: typeof import("/git/cleargraph/src/re...' is not assignable to parameter of type 'Props'.
Types of property 'resolvers' are incompatible.
Type 'typeof import("/git/cleargraph/src/resolvers/index")' is not assignable to type 'IResolvers'.
Property 'BigNumber' is incompatible with index signature.
Type 'GraphQLScalarType' is not assignable to type '(() => any) | IResolverObject | GraphQLScalarType'.
Type 'import("/git/cleargraph/node_modules/@types/graphql/type/definition").GraphQLScala...' is not assignable to type 'import("/git/cleargraph/node_modules/graphql-yoga/node_modules/@types/graphql/type...'.
Property 'extensionASTNodes' is missing in type 'GraphQLScalarType'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant