0

I am getting this error even after i have called the jquery file befre the bootstrap.js. anyone, Kindly suggest? I am working with node and angularr and webpack.

My declerations goes like 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 the cause here!

Thanks,

1 Answer 1

1

May be try loading the jQuery as below :

window.$ = window.jQuery = require('jquery/dist/jquery.js');

And then,

var Bootstrap = require('bootstrap/dist/js/bootstrap.js');

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.