0

Currently I am using DataTables in my web application and I was trying to extend them by adding Search Panes on top as shown in https://datatables.net/extensions/searchpanes/examples/initialisation/simple.html

I am using NuGet for all packages, but installing the datatables.net-searchpanes package leaves me with the build errors

  • Cannot find type definition file for 'jquery'
  • Cannot find type definition file for 'datatables'

The error arises, because the reference is given by type and not by path in e.g. the panesType.d.ts file as:

///<reference types="jquery" />
///<reference types="datatables.net" />

I am really new to this topic and while this seems to be great solution for the problem, trying to use npm as described here failed because I do not have Node.js installed on my computer.

I have a bunch of JS packages installed via NuGet, so I am hesitating a bit to change to npm only for the sake of having SearchPanes for the DataTables.

According to the first reference using NuGet for JS packages might not be best practise, so I was wondering if it makes sense to delete the respective NuGet packages and re-install them using npm. Moreover, I guess it would be necessary to uninstall all JS packages in NuGet and move to npm completely in order to have a clean package management or would a co-existence of NuGet on npm also be possible?

As I said, npm is a whole new world for me - that's also why I am inclined to stick to the known (NuGet) - so I'd be very grateful for some advice of hints for alternative approaches on this topic.

CJS
  • 56
  • 4

0 Answers0