DataTables / Vue

Vue plugin for DataTables
MIT License
62 stars 12 forks source link

Typescript error #3

Open roke22 opened 1 year ago

roke22 commented 1 year ago

Hello,

Using the example https://stackblitz.com/edit/datatables-net-vue3-bootstrap5?file=src%2FApp.vue works fine while i am running "npm run dev" but when i run "npm run build" i get this error:

src/components/dashboard/Users.vue:6:26 - error TS2306: File '/var/www/html/public-dev/node_modules/datatables.net-bs5/types/dataTables.bootstrap5.d.ts' is not a module.

6 import DataTableBs5 from 'datatables.net-bs5';
                           ~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/components/dashboard/Users.vue:6

I am using vitejs, vuejs 3 and typescript. The "types/dataTables.bootstrap5.d.ts" file is empty

AllanJard commented 1 year ago

Thanks for letting me know. I think we've got a few issues with TS files at the moment for their definitions. I'll be looking into this sometime soon (I can't say exactly when, as I don't know!).