I keep gettingSortable is not a constructor when using it with Webpack in Laravel.
importSortablefrom'sortablejs';import'jquery-sortablejs';window.Sortable=Sortable;window.$=window.jQuery=require('jquery');It works fine when I use CDN. What could be causing this?