Open yashwp opened 9 months ago
I ran into the exact same issue using Nuxt 3.5.1 when generating (to deploy to netlify) and vue3-table-lite 1.3.7... and I figured out how to fix it.
In nuxt.config.tx
add this to your configuration:
build: {
transpile: ['vue3-table-lite'],
},
And... that fixed it for me! Hope it works for you too.
Hi, @Chalks and @yashwp Thanks for issue. I am want to resolve this problem, and how can I reproduce the problem? Nuxt3 + vue3-table-lite?
Hi @linmasahiro,
I'm using "vue": "^3.4.21",
of Vue in my application where I have install latest version of the this package, but at the time of nuxt build
command, the above error is coming.
Hi @linmasahiro,
I'm using
"vue": "^3.4.21",
of Vue in my application where I have install latest version of the this package, but at the time ofnuxt build
command, the above error is coming.
Hi, @yashwp , Thanks for your reply.
I think because vue3-table-lite
is only for client-side?
Here has 2 solutions
1: Use <ClientOnly>
tag to wrap your vue3-table-lite
tag.
<template>
<div>
<ClientOnly>
<Vue3TableLite />
</ClientOnly>
</div>
</template>
2: Add below configuration to your nuxt.config.ts
build: {
transpile: ['vue3-table-lite'],
},
I'm deploying my site to Vercel, were I'm getting the below error:
When I'm commenting
VueTableLite
component, the error goes away