Cannot find module `graphql-codegen-core` error when generating types
See original GitHub issueDescribe the bug
Cannot find module graphql-codegen-core
error when generating types
To Reproduce Steps to reproduce the behavior:
- Install typescript-server plugin
- Execute type generation
- Errors with
Unable to load template plugin matching 'typescript-server'.
Reason:
Cannot find module 'graphql-codegen-core'
Expected behavior
graphql-codegen-core
should be a dependency of graphql-codegen-typescript-server
not a devDependency. Its used in the codebase and therefore should not be a devDependency.
Schema/Documents N/A
Environment:
- OS: Mac
- Codegen: 0.14.5
- Node: 10.x
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
module not found when using graphql-code-generator
When I import generated types from graphql.ts it works fine. However when importing the gql i get the cannot find module error.
Read more >Codegen:generate error, cannot find module 'graphql ...
Hello! I had successfully been able to run the following command over the past couple of weeks. But today I was faced with...
Read more >@graphql-codegen/core - npm
Start using @graphql-codegen/core in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >Installation - GraphQL Code Generator
Question by question, it will guide you through the whole process of setting up a schema, selecting and installing plugins, picking a ...
Read more >GraphQL Code Libraries, Tools and Services
Add any type specific cache control directives in the format: ... automatic data consistency, optimistic updates, and error handling. See ... npm@urql/core.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dotansimha I’m using Lerna so its possible Lerna is playing some dirty tricks on install
The fix was to delete both the lock file and the node_module folder. Even though I have a fix. I’d like to get to the bottom of this issue. I will take some time to submit a repo reproducing the issue.