Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.63k stars 724 forks source link

Nuxt 3 implementation #497

Open BITRU opened 1 year ago

BITRU commented 1 year ago

Trying to implement this package in Nuxt 3. Maby someone has it working or need to implement because Nuxt 3 is getting popular now.

Steeps done, plugins/vue-easytable.client.ts - if not .client will fail

import VueEasytable from 'vue-easytable'
export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueEasytable)
})
defineNuxtConfig({ 
vite: { optimizeDeps: { include: ['vue-easytable',],},},
})

This will start app. But on page there is error

` `

Vue warn]: Failed to resolve component: ve-table If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Any Idea how to make it working?

DrZell commented 1 year ago

I have the same problem, it doesn't work with Nuxt3