Cannot find namespace 'DataTables'

See original GitHub issue

I have imported everything right as per the documentation. I still get the error CANNOT FIND NAMESPACE DATATABLES.

"@ng-bootstrap/ng-bootstrap": "^2.0.0",
    "@ngx-translate/core": "^10.0.1",
    "angular-datatables": "^6.0.0",
    "bootstrap": "^4.1.1",
    "core-js": "^2.5.6",
    "datatables.net": "^1.10.16",
    "datatables.net-dt": "^1.10.16",
    "jquery": "^3.3.1",

If you can help me it would be great. Thank you. @l-lin

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

40reactions
guojing505123commented, Jun 27, 2018

solved, npm i @types/datatables.net --save-dev

6reactions
nicogaldocommented, Dec 7, 2018

I have the same problem with angular-datatables version 7.0.0 with Angular 6 Fixed downgrade version of angular-datables to 6.0.0

npm uninstall angular-datatables npm install angular-datatables@6.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using full featured Datatables Plugin with Angular 6
ts(27,25): er ror TS2503: Cannot find namespace 'DataTables'. I was missing the two last install steps to make Datatables.net works with Angular ...
Read more >
Cannot find Type defination file for datatables.net
I am using NuGet package manager to add packages to this application. I have used datatables.net before with bootstrap 4.6 w/o issue. Any ......
Read more >
@types/datatables.net - npm
TypeScript definitions for JQuery DataTables. ... Start using @types/datatables.net in your project by running `npm i @types/datatables.net` ...
Read more >
cannot find Datatable are u missing assembly or directive
Solution 1 · 1. You need to include System.Data · 2. Because for some strange reason you have wrapped your class properties in...
Read more >
Angular 9 Datatables working example - Therichpost
Datatable with custom json data working example in Angular 12. ... TS2503: Cannot find namespace 'DataTables'. dtOptions: DataTables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found