nate-strauser / meteor-x-editable-bootstrap

Smart package for x-editable in place editor
80 stars 51 forks source link

JQuery loaded too late? #33

Open dh1tw opened 9 years ago

dh1tw commented 9 years ago

Hey,

I created an empty Meteor project (1.1.0.2), and simple added meteor-x-editable-bootstrap.

When I execute Meteor and load the client, I get to following error message in my browser's debug console:

[Error] TypeError: undefined is not an object (evaluating '$.fn.popover.Constructor')
(anonymous function) (natestrauser_x-editable-bootstrap.js, line 4741)
(anonymous function) (natestrauser_x-editable-bootstrap.js, line 4953)
global code (natestrauser_x-editable-bootstrap.js, line 17232)

I'm not sure, but might it be possible that x-editable-bootstrap is loaded before jQuery?

kizimo commented 9 years ago

https://github.com/nate-strauser/meteor-x-editable-bootstrap/issues/35......i was using nemo64:bootstrap....when I switched over to twbs:bootstrap, it no longer gave me the error

https://github.com/Nemo64/meteor-bootstrap/issues/14

mizzao commented 9 years ago

This is because only twbs:bootstrap is added as a weak dep in package.js.

EDIT: I added a weak dep on nemo64:bootstrap in the latest version, can you see if that fixes it?