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

Build directory appears to be missing in 0.8.4 #224

Open
mrkutly opened this issue Apr 11, 2023 · 4 comments
Open

Build directory appears to be missing in 0.8.4 #224

mrkutly opened this issue Apr 11, 2023 · 4 comments

Comments

@mrkutly
Copy link

mrkutly commented Apr 11, 2023

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

Summary
I am getting the following error when trying to run the @graphql-codegen/cli:

✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to src/api/graphql/index.ts
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖
      Unable to find template plugin matching 'plugin-typescript-swr'
      Install one of the following packages:
      - @graphql-codegen/plugin-typescript-swr
      - @graphql-codegen/plugin-typescript-swr-template
      - @graphql-codegen/plugin-typescript-swr-plugin
      - graphql-codegen-plugin-typescript-swr
      - graphql-codegen-plugin-typescript-swr-template
      - graphql-codegen-plugin-typescript-swr-plugin
      - codegen-plugin-typescript-swr
      - codegen-plugin-typescript-swr-template
      - plugin-typescript-swr

Other information

When checking the error being thrown inside the cli code, I see this message:

✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to src/api/graphql/index.ts
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ Cannot find module '[my project dir]/node_modules/graphql-codegen-plugin-typescript-swr/build/main/index.js'. Please verify that the package.json has a valid "main" entry

Checking the package.json for this plugin shows that main is build/main/index.js. When I install 0.8.3, everything works and I can see that the build dir is in included in the package:
Screenshot 2023-04-11 at 11 05 05 AM

In 0.8.4, this build directory is not included when installing the package:
Screenshot 2023-04-11 at 11 05 32 AM

Please let me know if I can provide any other info to help debug this issue!

@DaanKorver
Copy link

Currently running on 0.8.3 for my project. Hope they fix this soon. Big thanks for noticing this issue, helped me a lot <3

@DaanKorver
Copy link

Any updates on this?

@BrainEno
Copy link

get same problem

@eitoball
Copy link
Collaborator

eitoball commented Aug 7, 2023

@mrkutly Thank you for reporting. Just released v0.8.5 to fix packaging issue. Please try, and let me know how it goes.

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

4 participants