DT + Plugins -> Type error

DT + Plugins -> Type error

TheChattyTheChatty Posts: 2Questions: 0Answers: 0
edited December 2024 in Free community support

Link to test case: https://stackblitz.com/github/TheChatty/Datatable-i18n
Debugger code (debug.datatables.net):
Error messages shown: error TS7016: Could not find a declaration file for module 'datatables.net-plugins/i18n/de-DE.mjs'.
Description of problem:
I created a minimal, error exhibiting solution by:
* forking BootVue
* adding DT + Plugin
* pnpm run typecheck produces the above error

Nevertheless, the solution is working as is.

Replies

  • allanallan Posts: 63,881Questions: 1Answers: 10,530 Site admin

    error TS7016: Could not find a declaration file for module 'datatables.net-plugins/i18n/de-DE.mjs'.

    There isn't a type file for that file.

    I've made a note to look into how that might be added for all the language files.

    Allan

  • TheChattyTheChatty Posts: 2Questions: 0Answers: 0

    Can you tell me what I need to add manually until you add it for all files?

  • allanallan Posts: 63,881Questions: 1Answers: 10,530 Site admin

    This SO thread discusses how TS type declarations can be added for modules which don't yet have their own.

    Allan

Sign In or Register to comment.