Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does bootstrap depend on jQuery? #19809

Closed
trusktr opened this issue Apr 27, 2016 · 7 comments
Closed

Does bootstrap depend on jQuery? #19809

trusktr opened this issue Apr 27, 2016 · 7 comments
Labels

Comments

@trusktr
Copy link

trusktr commented Apr 27, 2016

If so, then there could be a bug in the fact that it's not listed in it's NPM dependencies: https://www.npmjs.com/package/bootstrap

@yasinkocak
Copy link

@F1shbone
Copy link

Could be an error in the npm package, Bootstrap requires jQuery (see http://getbootstrap.com/getting-started/#whats-included)

@DaSchTour
Copy link
Contributor

DaSchTour commented Apr 27, 2016

It's an error in package.json
jQuery isn't listed there.
I guess this is a conceptional problem when using bower and npm side by side.
package.json at the moment only contains dependecies that are needed to build Bootstrap. Therefore jQuery isn't needed. In bower.json only jquery is listed as a dependecie because it is needed for productiv usage.

BTW: Bootstrap 4 has jquery in package.json as a dependecy.

@trusktr
Copy link
Author

trusktr commented May 6, 2016

Thanks for confirming! Placing it there will be nice for people who use NPM exclusively (with Browserify, Webpack, and others).

@mdo
Copy link
Member

mdo commented Sep 6, 2016

Listed as a dependency in v4.

@mdo mdo closed this as completed Sep 6, 2016
@mdo mdo added the v4 label Sep 6, 2016
@dermeister0
Copy link

dermeister0 commented Apr 20, 2018

Listed as a dependency in v4.

Bootstrap 4.1.0 has 0 dependencies. I had to add jquery and popper.js manually.

I guess it's made for those who does not need JS, only CSS.
http://getbootstrap.com/getting-started/#whats-included

@wolfy1339
Copy link
Contributor

They are listed as peerDependenies, because you don't need them to use Bootstrap without the JS.
That behavior is intended. NPM should warn you to install them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants