l-lin / angular-datatables

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

Can't resolve 'node_modules/datatables.net/js/jquery.dataTables.min.js' #1798

Closed jeeshenlee closed 1 month ago

jeeshenlee commented 3 months ago

:beetle: bug report

Using angular-datatables version 17.1.0 and I'm getting "Can't resolve 'node_modules/datatables.net/js/jquery.dataTables.min.js'"

:globe_with_meridians: Your Environment

DarkoGjakovski commented 3 months ago

Did you find a solution to this? Having the same problem

imsonofgod commented 2 months ago

The packages not dowload correctly I have the same issue, pls fix.

package

NodeJS version: 22.2.0 Angular version: 18.0.0

RahulkExl commented 2 months ago

I was facing the same problem a month back and got the solution in some random youtube video. Just remove jquery from the path. node_modules/datatables.net/js/dataTables.min.js

Hope this will help.

shanmukhateja commented 2 months ago

Hi,

This issue shouldn't occur when ng add is used to install the library. We set the correct path from our end https://github.com/l-lin/angular-datatables/blob/master/lib/schematics/src/ng-add/index.ts#L61

Can you delete the angular-datatables entry from package.json and delete node_modules/angular-datatables folder from the project and then run the command: ng add angular-datatables@17.1.0 and confirm?

If the issue persists, please provide a small reproducible repo link or StackBlitz link to investigate.