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
-
I'm working in a bare bones Vite / React / Typescript project and would like to configuration GraphQL autocomplete inside of
.graphql
files. I am able to get it working perfectly using a.graphqlrc.yml
file but when I use.ts
extension the autocomplete breaks and I'm at a loss as to why that would be.Here is the
.graphqlrc.ts
file config:Beta Was this translation helpful? Give feedback.
All reactions