Bootstrap and jQuery 3 incompatibility

I have the following packages file

meteor-base
mongo
blaze-html-templates
session
tracker

es5-shim
ecmascript

check
accounts-base
accounts-password
kadira:flow-router
kadira:blaze-layout

arillo:flow-router-helpers
msavin:mongol
msavin:jetsetter
aldeed:collection2
alanning:roles
http

jquery
twbs:bootstrap
less
fortawesome:fontawesome

natestrauser:x-editable-bootstrap
stevezhu:lodash
jossoco:bootstrap-datepicker
sergeyt:typeahead
aldeed:template-extension
okgrow:analytics
zimme:active-route
email

percolate:find-from-publication
brettle:accounts-login-state
brettle:accounts-anonymous
brettle:accounts-add-service
brettle:accounts-logout-to-switch
brettle:accounts-multiple
mizzao:user-status

And this versions file:

accounts-base@1.2.7
accounts-password@1.1.10
alanning:roles@1.2.15
aldeed:collection2@2.9.1
aldeed:collection2-core@1.1.1
aldeed:schema-deny@1.0.1
aldeed:schema-index@1.0.1
aldeed:simple-schema@1.5.3
aldeed:template-extension@4.0.0
allow-deny@1.0.5
arillo:flow-router-helpers@0.5.2
autoupdate@1.2.10
babel-compiler@6.8.0
babel-runtime@0.1.9
base64@1.0.9
binary-heap@1.0.9
blaze@2.1.8
blaze-html-templates@1.0.4
blaze-tools@1.0.9
boilerplate-generator@1.0.9
brettle:accounts-add-service@1.0.0
brettle:accounts-anonymous@0.3.1
brettle:accounts-login-state@0.0.4
brettle:accounts-logout-to-switch@0.4.2
brettle:accounts-multiple@0.3.1
brettle:workaround-issue-4331@0.0.4
brettle:workaround-issue-4862@0.0.3
brettle:workaround-issue-4970@0.0.4
caching-compiler@1.0.5
caching-html-compiler@1.0.6
callback-hook@1.0.9
check@1.2.2
coffeescript@1.1.0
ddp@1.2.5
ddp-client@1.2.8
ddp-common@1.2.6
ddp-rate-limiter@1.0.5
ddp-server@1.2.7
deps@1.0.12
diff-sequence@1.0.6
ecmascript@0.4.4
ecmascript-runtime@0.2.11
ejson@1.0.12
email@1.0.13
es5-shim@4.5.11
fortawesome:fontawesome@4.5.0
geojson-utils@1.0.9
hot-code-push@1.0.4
html-tools@1.0.10
htmljs@1.0.10
http@1.1.6
id-map@1.0.8
jossoco:bootstrap-datepicker@1.0.0
jquery@1.11.9
kadira:blaze-layout@2.3.0
kadira:flow-router@2.12.1
less@2.6.1
livedata@1.0.18
localstorage@1.0.11
logging@1.0.13
mdg:validation-error@0.2.0
meteor@1.1.15
meteor-base@1.0.4
meteortoys:toykit@3.0.4
minifier-js@1.1.12
minimongo@1.0.17
mizzao:timesync@0.3.4
mizzao:user-status@0.6.6
modules@0.6.2
modules-runtime@0.6.4
mongo@1.1.8
mongo-id@1.0.5
msavin:jetsetter@2.0.0
msavin:mongol@2.0.1
natestrauser:x-editable-bootstrap@1.5.2_4
npm-bcrypt@0.8.6_1
npm-mongo@1.4.44
observe-sequence@1.0.12
okgrow:analytics@1.0.6
ordered-dict@1.0.8
percolate:find-from-publication@0.1.0
promise@0.7.2
raix:eventemitter@0.1.3
random@1.0.9
rate-limit@1.0.5
reactive-dict@1.1.8
reactive-var@1.0.10
reload@1.1.9
retry@1.0.8
routepolicy@1.0.11
sergeyt:typeahead@0.11.1_9
service-configuration@1.0.10
session@1.1.6
sha@1.0.8
spacebars@1.0.12
spacebars-compiler@1.0.12
srp@1.0.9
stevezhu:lodash@4.13.1
templating@1.1.10
templating-tools@1.0.4
tracker@1.0.14
twbs:bootstrap@3.3.6
ui@1.0.11
underscore@1.0.9
url@1.0.10
webapp@1.2.9
webapp-hashing@1.0.9
zimme:active-route@2.3.2

Meteor release is 1.3.3

I get this error in the console: Uncaught Error: Bootstrap’s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

$.fn.jquery returns 3.0.0

The thing is I have the same packages and versions and meteor release on another project and I don’t get the error, but $.fn.jquery returns 2.2.2.

How does this happen? The same packages and version specifications result in different jquery versions?

Can someone help me out? Why is this happening and how can I fix it?

Found the issue!
I had an npm module that had jquery 3 as a dependency.
I used npm shrinkwrap to limit the version of jquery to 2.2.4
I’m also updating meteor’s bundled jquery (1.x.x) by simply importing jquery in the client startup script

Thanks I was having this issue too.

Hi tiberiumaxim,
Can you guide me to fix the issue? Im also getting the same as below :
Uncaught Error: Bootstrap’s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

2 years later, never late.

I edited my package.json file deleting jquery and using the bcrypt jquery. My dependencies change from:

  "dependencies": {
    "@babel/runtime": "^7.7.6",
    "base64-stream": "^1.0.0",
    "bcrypt": "^3.0.7",
    "jquery": "^3.4.1",
    "meteor-node-stubs": "^1.0.0",
    "pdfkit": "^0.11.0",
    "xlsx": "^0.15.4"
  }

to

  "dependencies": {
    "@babel/runtime": "^7.7.6",
    "base64-stream": "^1.0.0",
    "bcrypt": "^3.0.7",
    "meteor-node-stubs": "^1.0.0",
    "pdfkit": "^0.11.0",
    "xlsx": "^0.15.4"
  }

Note, i just delete Jquery dependency.
Remember delete all node_module modules and run meteor npm install again.

Thnx to @agusputra in this post: