You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project is an Ampersand Single Page App, which uses Moonboots.
Moonboots defines the non-common js libraries, which causes them to be written out at the top of the compiled/unified javascript file which is distributed to the client.
The problem that I am seeing is that when I wish to use bootbox in my ampersand-view pages using require("bootbox"), it causes the jQuery library to be written a second time in the javascript file (which causes problems with jQuery defines, making bootbox think bootstrap isn't installed).
If I remove the require("bootbox") call, then jQuery is only included once (as expected).
I assume this has something to do with module.exports = factory(require("jquery")); in bootbox.js, but truthfully am not sure, because I am not an advanced Node and Bootstrap developer.
The text was updated successfully, but these errors were encountered:
I am using Bootbox under Node:
My project is an Ampersand Single Page App, which uses Moonboots.
Moonboots defines the non-common js libraries, which causes them to be written out at the top of the compiled/unified javascript file which is distributed to the client.
The problem that I am seeing is that when I wish to use bootbox in my ampersand-view pages using
require("bootbox")
, it causes the jQuery library to be written a second time in the javascript file (which causes problems with jQuery defines, making bootbox think bootstrap isn't installed).If I remove the
require("bootbox")
call, then jQuery is only included once (as expected).I assume this has something to do with
module.exports = factory(require("jquery"));
in bootbox.js, but truthfully am not sure, because I am not an advanced Node and Bootstrap developer.The text was updated successfully, but these errors were encountered: