Importing jquery datatable with bootstrap library in angular 5 project throws error.

Importing jquery datatable with bootstrap library in angular 5 project throws error.

abhijit_padhyabhijit_padhy Posts: 3Questions: 2Answers: 0

While importing jquery datatable with bootstrap library in .angular-cli file throws below error:

ERROR in Metadata version mismatch for module /Users/abhijit_padhy/Documents/abhijit/ng51/node_modules/angular-datatables/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /Users/abhijit_padhy/Documents/abhijit/ng51/src/app/app.module.ts, resolving symbol AppModule in /Users/abhijit_padhy/Documents/abhijit/ng51/src/app/app.module.ts

How to resolve the above error?

I have tried importing both bottstrap v3.3.7 and v4.0.0.

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    You'll need to take this up with the Angular DataTables author. Currently DataTables doesn't have any typescript definitions as part of the distribution, so that must be something that has been added by the author of that package.

    Allan

This discussion has been closed.