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

Unable to find template plugin matching typescript-urql #33

Open
sidx8 opened this issue Apr 24, 2021 · 1 comment
Open

Unable to find template plugin matching typescript-urql #33

sidx8 opened this issue Apr 24, 2021 · 1 comment

Comments

@sidx8
Copy link

sidx8 commented Apr 24, 2021

Hi @benawad thanks for the great video I ran into a problem at around 2:51:16 if anybody can help me out that would be great thanks
btw I tried deleting the node modules and reinstalling them but it still doesn't work

After running yarn gen it gives the following error

yarn run v1.22.10
$ graphql-codegen --config codegen.yml
√ Parse configuration

Generate outputs
> Generate src/generated/graphql.tsx
√ Load GraphQL schemas
√ Load GraphQL documents
× Generate
→ Unable to find template plugin matching typescript-urql

Found 1 error

✖ src/generated/graphql.tsx
Unable to find template plugin matching 'typescript-urql'
Install one of the following packages:

- @graphql-codegen/typescript-urql
- @graphql-codegen/typescript-urql-template
- @graphql-codegen/typescript-urql-plugin
- graphql-codegen-typescript-urql
- graphql-codegen-typescript-urql-template
- graphql-codegen-typescript-urql-plugin
- codegen-typescript-urql
- codegen-typescript-urql-template
- typescript-urql
Error: Unable to find template plugin matching typescript-urql
    at getPluginByName (C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:335:11)
    at async Promise.all (index 2)
    at async C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:895:60  
    at async Task.task (C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:727:17)
Error: Unable to find template plugin matching typescript-urql
    at getPluginByName (C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:335:11)
    at async Promise.all (index 2)
    at async C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:895:60
    at async Task.task (C:\Users\shash\Desktop\Dev Company\reddit-clone\node_modules\@graphql-codegen\cli\bin.js:727:17)

Something went wrong
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@BravinR
Copy link

BravinR commented Mar 26, 2022

I think you forgot to add the types for typescript-urql the following worked for me
yarn add @graphql-codegen/typescript-urql

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

2 participants