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
{{ message }}
Repository navigation
VSCode shows error when adding plugin-graphql to Nuxt's nuxt.config.ts #1591
importgraphqlfrom'@rollup/plugin-graphql'
export defaultdefineNuxtConfig({
...
vite: {// for Frontendplugins: [graphql()],},nitro: {rollupConfig: {// for Backendplugins: [graphql()],},},});
When added in this way, it works fine in operation.
However, on the VSCode editor, an error is displayed at the graphql() point on the nitro side.
Type instantiation can be very deep and infinite. ts(2589)
(alias) graphql(options?: RollupGraphqlOptions | undefined): Plugin<any>
import graphql
Convert .gql/.graphql files to ES6 modules
Is this an error that only occurs with nuxt.config.ts?
How can I resolve this?
Activity