I'm using ES6 syntax to import stuff into my app.js browserify file like so:
import $ from 'jquery';
import Bootstrap from 'bootstrap-sass';
And still, I'm getting the following error:
bundle.js:3 Uncaught Error: Bootstrap's JavaScript requires jQuery
When I check bundle.js
file, both the Bootstrap JS and jQuery are in there but in different order (Bootstrap always comes first). I tried switching them around when loading, but still the same result.
Any ideas?