apollo
apollo copied to clipboard
Nuxt-vite and apollo-config file
When using nuxt-vite, the apollo-module works fine as long as the apollo config sits in nuxt.config.js. But when using an external config file, the requirestatements in plugin.js are not resolved by vite.
Would it be possible to switch to import instead of required and make the module fully work with vite?
I'm hitting the same exact issue. Is there a solution to this?
@chadwtaylor in the end it was easier to fully switch to vite and move away from nuxt
@jhartma Thanks for your response. We are already knee-deep in the Nuxt platform so we won't be able to make a switch unfortunately. The Nuxt team just rolled out a public-beta version of their new Nuxt v3 and Bridge solution, hopefully, this issue will be escalated and fixed to work with Vite.