const clientInExt = /\.\w+\.gql|graphql$/.test(file) regexp in utils not working correctly for files suffixed with graphql tough it works correctly with .gql files
Expected behaviour
schema generation should work the same with graphql files as it it does with gql files
Invalid Codegen Configuration! 11:29:44 AM
Please make sure that your codegen config file contains the "generates" field, with a specification for the plugins you need.
It should looks like that:
schema:
- my-schema.graphql
generates:
my-file.ts:
- plugin1
- plugin2
- plugin3
Environment
Build Modules: -
Describe the bug
const clientInExt = /\.\w+\.gql|graphql$/.test(file)
regexp in utils not working correctly for files suffixed withgraphql
tough it works correctly with.gql
filesExpected behaviour
schema generation should work the same with
graphql
files as it it does withgql
filesReproduction
https://stackblitz.com/edit/nuxt-graphql-3jjvgf?file=pnpm-lock.yaml
Additional context
No response
Logs