Replies: 2 comments 1 reply
-
|
😅 I think this may have been because I was using the /// <reference types="vite/client" />
import type { IGraphQLConfig } from 'graphql-config'
import "dotenv/config"
const config: IGraphQLConfig = {
schema: `${process.env["VITE_API_URL"]}/graphql`,
documents: "src/**/*.graphql"
}
export default config |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Actually I'm going to reopen this because I'm still having an issue getting autocomplete in this exact same setup but co-located with other directories. In a standalone git project |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working in a bare bones Vite / React / Typescript project and would like to configuration GraphQL autocomplete inside of
.graphqlfiles. I am able to get it working perfectly using a.graphqlrc.ymlfile but when I use.tsextension the autocomplete breaks and I'm at a loss as to why that would be.Here is the
.graphqlrc.tsfile config:Beta Was this translation helpful? Give feedback.
All reactions