How to call jquery-ui before loading in a meteorite project to prevent conflicts

I have a meteorite project (I am launching it mrt --release 0.6.5.1). In this project I use bootstrap2.3and jquery-ui 1.9.2However, since they conflict, they do not work well. Since I can here , it is recommended:

you should always call jquery-ui before loading unless you see a lot of problems like hints, etc.

Now I added the bootstrap package to my meteorite using

meteor add bootstrap
   mrt add bootstrap

and I added jquery-ui.js (downloaded from here ) in client/lib, and now it seems that they are conflicting. What should I do to get jquery-ui loaded before loading?

I found my boot version using chrome-> developer-> sources-> packages

this is my projectFolder/smart.jsonfile in the meteor project.

{
  "packages": {
    "router": {},
    "datatables": {},
    "select2": {},
    "accounts-ui-bootstrap-dropdown": {},
    "font-awesome": {},
    "verbalExpressions": {},
    "jquery-scrollTo": {},
    "bootboxjs": {},
    "event-hooks": {},
    "moment": {}
  }
}

And finally, this is my .meteor / packages file :

# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

standard-app-packages
autopublish
insecure
preserve-inputs
accounts-base
accounts-password
router
event-hooks
bootstrap
accounts-ui-bootstrap-dropdown
moment
datatables
select2
jquery-scrollTo
verbalExpressions
http
+4
source share
1 answer

Try installing bootstrap-3 and jquery-ui as packages using meteor addinstead of manually putting the jquery-ui js file in client / or lib /

Bootstrap:

$ meteor add twbs:bootstrap

Bootstrap-3 (instead of Bootstrap, not optional):

$ meteor add ian:accounts-ui-bootstrap-3

JQuery-uh:

$ meteor add mizzao:jquery-ui

Almost everything you need in terms of packages can be found on atmospherejs .

+1
source

Source: https://habr.com/ru/post/1606924/


All Articles