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

Is it possible to use it in tsconfig.json with ttypescript? #116

Open
dko-slapdash opened this issue Jun 25, 2020 · 0 comments
Open

Is it possible to use it in tsconfig.json with ttypescript? #116

dko-slapdash opened this issue Jun 25, 2020 · 0 comments

Comments

@dko-slapdash
Copy link

Hi.

There is https://github.com/cevek/ttypescript project which allows to use transformers in tsconfig.json (i.e. without webpack).

I noticed that ts-graphql-plugin should work with webpack's ts-loader, and thus it should've been compatible with tsconfig.json approach. But looks like it's not working there (maybe it's just not working with the latest version of TypeScript?) - the error shown is TypeError: transformer.transformSourceFile is not a function at node_modules/typescript/lib/typescript.js:93958:109 when using e.g. this file:

const getTransformer = require('ts-graphql-plugin/lib/transformer/transformer').getTransformer;
module.exports = getTransformer({});

P.S.
Here is an example of transformers we use in our project:

image

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