Wie lösen Fehler "Cannot set property 'emulateTransitionEnd' of undefined" in der Bootstrap node.js app?

Ich erstellt Node.js Anwendung von Grund auf neu, und ich habe Hinzugefügt, app.js.

global.jQuery = require('jquery'); 

Danach gibt er mir eine Fehlermeldung wie folgt:

/home/yojna/web/node_modules/bootstrap/js/transition.js:36
  $.fn.emulateTransitionEnd = function (duration) {
                        ^
    TypeError: Cannot set property 'emulateTransitionEnd' of undefined
    at /home/yojna/web/node_modules/bootstrap/js/transition.js:36:29
    at Object.<anonymous>(/home/yojna/web/node_modules/bootstrap/js/transition.js:59:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> 
    (/home/yojna/web/node_modules/bootstrap/dist/js/npm.js:2:1)
    at Module._compile (module.js:456:26)
    yojna@yojna-Inspiron-7520:~/web$ 
InformationsquelleAutor yojna | 2015-06-26
Schreibe einen Kommentar