l-lin / angular-datatables

DataTables with Angular
https://l-lin.github.io/angular-datatables/
MIT License
1.57k stars 481 forks source link

Issue related to missing index.d.ts file in node_modules #1791

Closed drifted-coder closed 1 month ago

drifted-coder commented 2 months ago

I have tried to install angular datatables in my project which is at Angular version 12. My datatable version was 12.0.2 which is completely supported in one of the project, but with the same configuration in another project when I am trying to install datatables in the @types folder of node_modules index.d.ts file is missing and for that DatatablesModule is not getting imported correctly, "cannot find namespace correctly" this error is giving, please guide me how to fix it I have tried almost everything.

image

alaamastouri commented 2 months ago

Hello, try to install @types

with ~ .

drifted-coder commented 1 month ago

Thank you. It worked