list.pagination.js icon indicating copy to clipboard operation
list.pagination.js copied to clipboard

Using w/ Browserify

Open ethanclevenger91 opened this issue 7 years ago • 2 comments

I'm trying to get List.js going with Browserify. The top of my scripts file that's being compiled is as such:

var List = require('list.js');
var ListPagination = require('list.pagination.js');

Browserify is throwing two errors: Cannot find module 'classes' and Cannot find module 'event'.

Let me know if there's more information that would be useful.

ethanclevenger91 avatar Sep 12 '16 20:09 ethanclevenger91

Temporary workaround was to require the minified version directly:

var ListPagination = require('./../node_modules/list.pagination.js/dist/list.pagination.min.js')

ethanclevenger91 avatar Sep 12 '16 21:09 ethanclevenger91

+1

mrcsmcln avatar Nov 07 '16 22:11 mrcsmcln