Open simonmaass opened 8 months ago
I was able to get this working in nuxt SSR mode via this https://github.com/cyco130/vite-plugin-cjs-interop
I was able to get this working in nuxt SSR mode via this https://github.com/cyco130/vite-plugin-cjs-interop
Thanks, this worked.
After installing it, you have to add this block to nuxt.config.ts:
vite: {
plugins: [
cjsInterop({
// List of CJS dependencies that require interop
dependencies: ["vue-filepond"],
}),
],
},
you are also able to get it to work without the plugin with this setting:
build: {
transpile: ['vue-filepond']
},
Is there an existing issue for this?
Have you updated Vue FilePond, FilePond, and all plugins?
Describe the bug
I am using nuxt 3 with the following import:
import VueFilePond, { setOptions } from 'vue-filepond'
When accessing the page client side everything works but when reloading the page with ssr i get the following error:
Reproduction
When running "yarn dev" the error does not occur.. but when running yarn build and yarn start in SSR i get the error
Environment