Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

182
Visualizações
ASP.NET MVC using DataTable Search Panes

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.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda