question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue description

  • components: reactstrap
  • reactstrap version #5.0.0
  • import method no idea (if umd, are you using the “full” version (only for v5+)?)
  • react version #16.3.2
  • bootstrap version #4.1.0

What is happening?

Sorry, I’ve just started with react + reactstrap. What should I do if we install bootstrap (npm i -S bootstrap) and get the message: bootstrap@4.1.0 requires a peer of jquery@1.9.1 - 3 but none is installed

Should we go ahead and install jquery? or it will conflict with reactstrap/react ?

Thanks in advance

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
TheSharpieOnecommented, Apr 20, 2018

You can safely ignore that peer dependency, or you can install it and just not use or reference jquery anywhere. jquery is only a dependency for bootstrap when using bootstrap.js, but since you are using reactstrap, you don’t need bootstrap.js nor jquery. I believe I have read somewhere that in the future bootstrap may split up the styles from the functionality (javascript) so that you can import just the styles and use a third-party, library specific implementation (such as reactstrap)

0reactions
TheSharpieOnecommented, Dec 18, 2018

depending on your packages and how npm structures your node_modules, you may need to explicitly add it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You Might Not Need jQuery
jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application. If you're...
Read more >
Is jQuery dead in 2022? 155 developers respond ...
Is jQuery dead or is it just a bunch of haters? 155 software developers recently chimed in for a RealToughCandy survey to share...
Read more >
6 Reasons We Still Use jQuery in 2021 | Atypic
jQuery has been around for 10+ years & still one of the popular JavaScript libraries in web development. We love jQuery here &...
Read more >
Do we still need jQuery in 2020? - DEV Community ‍ ‍
Animations: JQuery provides some easy to use out-of-the-box functions for animating DOM elements, without needing to get messy with CSS.
Read more >
(Why) Is jQuery dead? - Medium
Whether or not jQuery is dead seems to be a hot topic for people in the coding world. So, I decided to explore...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found