nuxt setup client only code example
Example: nuxt client-only component
<template>
<div>
<client-only>
<apexchart />
</client-only>
</div>
</template>
export default {
componennts: {
apexchart: () => (process.client ?
import('vue-apexcharts')
: Promise.resolve({ render: (h) => h('div') })),
}
}