$(…).modal is not a function(…) error using webpack and bootstrap-loader
问题 I'm having an issue opening modals with the $('#modal-id').modal('show') function. After narrowing down the issues, I believe this has something to do with webpack loading my dependencies or specifically with the jQuery dependency. Here are the necessary pieces of my webpack configuration: entry: { 'js/bootstrap.bundle': 'bootstrap-loader', 'js/common.bundle': [ path.join(PROJECT_ROOT, 'resources/assets/js/common/app.js'), path.join(PROJECT_ROOT, 'resources/assets/js/common/table.js') ], ...