apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Nuxt-vite and apollo-config file

Open jhartma opened this issue 4 years ago • 3 comments

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?

jhartma avatar Jun 25 '21 09:06 jhartma

I'm hitting the same exact issue. Is there a solution to this?

chadwtaylor avatar Oct 22 '21 17:10 chadwtaylor

@chadwtaylor in the end it was easier to fully switch to vite and move away from nuxt

jhartma avatar Oct 23 '21 08:10 jhartma

@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.

chadwtaylor avatar Oct 25 '21 13:10 chadwtaylor