angularjs - bundle.js: Uncaught Error: Bootstrap's JavaScript requires jQuery -
i getting error after have called jquery file befre bootstrap.js. anyone, kindly suggest? working node , angularr , webpack.
my declerations goes this.
require('jquery/dist/jquery.min.js'); require('bootstrap/dist/css/bootstrap.css'); require('bootstrap/dist/js/bootstrap.js'); require('./content/common.css'); require('angular');
pls suggest cause here!
thanks,
may try loading jquery below :
window.$ = window.jquery = require('jquery/dist/jquery.js');
and then,
var bootstrap = require('bootstrap/dist/js/bootstrap.js');
Comments
Post a Comment