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

Can not resolve this package #165

Open
lemiesz opened this issue Dec 18, 2024 · 1 comment
Open

Can not resolve this package #165

lemiesz opened this issue Dec 18, 2024 · 1 comment

Comments

@lemiesz
Copy link

lemiesz commented Dec 18, 2024

ERROR in ./src/graphql/graphql.ts 2:0-86
Module not found: Error: Can't resolve '@graphql-typed-document-node/core' in '/local/home/lemiesz/Projects/[redacted]
@ ./src/graphql/fragment-masking.ts 5:0-40
@ ./src/graphql/index.ts 1:0-35 1:0-35
@ ./src/components/App.tsx 16:0-38 25:0-7
@ ./src/index.tsx 4:0-35 36:40-43

I am getting this error

My codegen config looks like this

const config: CodegenConfig = {
   schema: process.env.SCHEMA_URL_OVERRIDE!,
   documents: ['src/**/*.tsx'],
   ignoreNoDocuments: true,
   generates: {
       './src/graphql/': {
           preset: 'client',
           config: {
               documentMode: 'string',
           },
       },
       './src/apollo/apollo-client.generate.ts': {
           plugins: ['typescript', 'typescript-operations', 'typescript-react-apollo'],
           config: {
               withHooks: true,
           },
       },
       './schema.graphql': {
           plugins: ['schema-ast'],
           config: {
               includeDirectives: true,
           },
       },
   },
};
@saihaj
Copy link
Collaborator

saihaj commented Dec 18, 2024

Can you please share a minimal reproduction. You can either use StackBlitz, CodeSandbox or a public GitHub repo.

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