Answer the question
In order to leave comments, you need to log in
How to explicitly specify dependencies in browserify?
Include browserify with jQuery, perfect scrollbar, jQuery ui and bootstrap-sass
var $, Ps, jQuery;
$ = jQuery = require('jquery');
Ps = require('perfect-scrollbar');
require('jquery-ui/slider');
require('bootstrap-sass');
Uncaught Error: Bootstrap's JavaScript requires jQuery
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
Answer the question
In order to leave comments, you need to log in
Bootstrap doesn't seem to work with CommonJS. Try something like this:
var $ = window.jQuery = require('jquery');
require('bootstrap-sass');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question