Angular Error bootstrap.js:213 Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.
Fehler in Google Chrome Browser in einer Angular Anwendung
bootstrap.js:213 Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript. at Object.jQueryDetection (bootstrap.js:213) at bootstrap.js:228 at bootstrap.js:9 at bootstrap.js:10 |
Solution:
In der Datei angular.json muss man die Reihenfolge vertauschen. Dann ng serve neu starten
"scripts": [ "./node_modules/jquery/dist/jquery.js", "./node_modules/bootstrap/dist/js/bootstrap.js" |