nuxt / vite

⚡ Vite Experience with Nuxt 2
https://vite.nuxtjs.org
1.39k stars 46 forks source link

nuxt-apollo support #107

Open scotthansonde opened 3 years ago

scotthansonde commented 3 years ago

Adding nuxt-apollo to a barebones nuxt project with nuxt-vite results in the "requested module does not provide an export named default" error for vue-cli-plugin-apollo

Uncaught SyntaxError: The requested module '/@fs/.../nuxt-vite-apollo/node_modules/.cache/vite/client/vue-cli-plugin-apollo_graphql-client_src.js?v=53b7a7f9' does not provide an export named 'default'

Excluding vue-cli-plugin-apollo from optimizeDeps as suggested results in a different error

[vite] Internal server error: ENOENT: no such file or directory, open '.../nuxt-vite-apollo/node_modules/apollo-link-persisted-queries/src/index.ts'

Sample repo: https://github.com/papascott/nuxt-vite-apollo

realityfilter commented 3 years ago

Is there a workaround for this? I have the same problem with blurhash.