The CJS build of Vite's Node API is deprecated.

I've been using vite-plugin-graphql-codegen with Nuxt for quite some time and I started getting this warning lately. My nuxt.config.ts looks like this:
import codegen from "vite-plugin-graphql-codegen";

export default defineNuxtConfig({
vite: { plugins: [codegen()] },
});
import codegen from "vite-plugin-graphql-codegen";

export default defineNuxtConfig({
vite: { plugins: [codegen()] },
});
The plugin itself seems to have the proper "type" / "exports" in package.json. Any help or guidance would be greatly appreciated !
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server