Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript error #3

Open
roke22 opened this issue Aug 20, 2022 · 1 comment
Open

Typescript error #3

roke22 opened this issue Aug 20, 2022 · 1 comment

Comments

@roke22
Copy link

roke22 commented Aug 20, 2022

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
Copy link
Contributor

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!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants