You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#8034 seems to have changed the way imports work by adding .js everywhere.
I use preset near-operation-file together with typescript-operations and typescript-react-query which now results in TS files with fragment imports like this:
import { BlaFragmentDoc } from './Bla.js'
In my Next.js app this now fails to compile with:
Module not found: Can't resolve './Bla.js'
Sorry I don't have time to make a repro repo. I provided my codegen.yml which should result in the same issue.
Describe the bug
#8034 seems to have changed the way imports work by adding .js everywhere.
I use preset
near-operation-file
together withtypescript-operations
andtypescript-react-query
which now results in TS files with fragment imports like this:In my Next.js app this now fails to compile with:
Sorry I don't have time to make a repro repo. I provided my codegen.yml which should result in the same issue.
Your Example Website or App
Sorry I don't have time to make a repro repo.
Steps to Reproduce the Bug or Issue
Expected behavior
There should be no .js in the fragment filename.
Screenshots or Videos
No response
Platform
OS: macOS
NodeJS: v16.15.0
"graphql": "^16.5.0",
"@graphql-codegen/add": "^3.2.0",
"@graphql-codegen/cli": "^2.8.0",
"@graphql-codegen/near-operation-file-preset": "^2.3.0",
"@graphql-codegen/typescript": "^2.7.0",
"@graphql-codegen/typescript-operations": "^2.5.0",
"@graphql-codegen/typescript-react-query": "^3.6.0",
Codegen Config File
Additional context
No response
The text was updated successfully, but these errors were encountered: