Error: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript


#1

Hello Everyone,

Im using meteor v1.5.2 but unlucky i got the error below:

“Error: Bootstrap’s JavaScript requires jQuery. jQuery must be included before Bootstrap’s JavaScript”

W20170922-08:50:04.101(0)? (STDERR) /var/www/html/abc.com/.meteor/local/meteor-tool/.1.5.2.ecibw9++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170922-08:50:04.107(0)? (STDERR) throw(ex);
W20170922-08:50:04.112(0)? (STDERR) ^
W20170922-08:50:04.113(0)? (STDERR)
W20170922-08:50:04.116(0)? (STDERR) Error: Bootstrap’s JavaScript requires jQuery. jQuery must be included before Bootstrap’s JavaScript.
W20170922-08:50:04.120(0)? (STDERR) at meteorInstall.build.js.bootstrap.js (build/js/bootstrap.js:8:9)
W20170922-08:50:04.122(0)? (STDERR) at fileEvaluate (packages/modules-runtime.js:333:9)
W20170922-08:50:04.123(0)? (STDERR) at require (packages/modules-runtime.js:228:16)
W20170922-08:50:04.124(0)? (STDERR) at /var/www/html/abc.com/.meteor/local/build/programs/server/app/app.js:49145:1
W20170922-08:50:04.125(0)? (STDERR) at /var/www/html/abc.com/.meteor/local/build/programs/server/boot.js:338:34
W20170922-08:50:04.126(0)? (STDERR) at Array.forEach (native)
W20170922-08:50:04.127(0)? (STDERR) at Function..each..forEach (/var/www/html/abc.com/.meteor/local/meteor-tool/.1.5.2.ecibw9++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170922-08:50:04.129(0)? (STDERR) at /var/www/html/abc.com/.meteor/local/build/programs/server/boot.js:158:5
W20170922-08:50:04.130(0)? (STDERR) at /var/www/html/abc.com/.meteor/local/build/programs/server/boot.js:387:5
W20170922-08:50:04.131(0)? (STDERR) at Function.run (/var/www/html/abc.com/.meteor/local/build/programs/server/profile.js:510:12)

I try install meteor npm instal jquery, but stil failed,

How can i do to resolve the problem?
Please help

Many thanks


#2

You could put jquery in the <head> of your index.html file from a CDN. You’d then need to remove it from meteor and npm though (meteor remove jquery and npm uninstall --save jquery respectively) to prevent having duplicates!