DataTables / SearchPanes

SearchPanes extension for DataTables
https://datatables.net
Other
19 stars 10 forks source link

module not found: Error: Can't resolve 'datatables.net-searchPanes' in '/home/user/project/node_modules/datatables.net-searchpanes-bs4/js' #17

Closed thebravoman closed 4 years ago

thebravoman commented 4 years ago

Using webpack. Installed datatables.net and datatables.net-select, datatable.net-searchpanes.

require('datatables.net');
require('datatables.net-select');
require('datatables.net-searchpanes');

Not working great, but it is working. The searchpanes are completely without style so I decide to add

require('datatables.net-searchpanes-bs4');

The following error occurs:

ERROR in ./node_modules/datatables.net-searchpanes-bs4/js/searchPanes.bootstrap4.js
Module not found: Error: Can't resolve 'datatables.net-searchPanes' in '/home/user/project/node_modules/datatables.net-searchpanes-bs4/js'
resolve 'datatables.net-searchPanes' in '/home/user/project/node_modules/datatables.net-searchpanes-bs4/js'
  Parsed request is a module
  using description file: /home/user/project/node_modules/datatables.net-searchpanes-bs4/package.json (relative path: ./js)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      looking for modules in /home/user/project/app/javascript
        using description file: /home/user/project/package.json (relative path: ./app/javascript)
          Field 'browser' doesn't contain a valid alias configuration
          using description file: /home/user/project/package.json (relative path: ./app/javascript/datatables.net-searchPanes)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/user/project/app/javascript/datatables.net-searchPanes doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration

It seems to be searching for datatables.net-searchPanes where the module is datatables.net-searchpanes

SandyDatatables commented 4 years ago

Hi @thebravoman ,

Thanks for this, take a look at #16 that was resolved earlier today. The fix will be available in the next SearchPanes release, which we hope will be very soon.

Thanks, Sandy