No matter what I do, I cant seem to get jquery imported before bootstrap wants to use it.
Here is my app.js
// JQuery libary needed for bootstrap
import 'jquery/dist/jquery.min.js';
// Bootstrap libary
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap.js';
// Bootstrap-select libary
import 'bootstrap-select/dist/css/bootstrap-select.css';
import 'bootstrap-select/dist/js/bootstrap-select.js';
// Angular-material standard CSS
import 'angular-material/angular-material.css';
And here is my package.json
"dependencies": {
"@angular/material": "^2.0.0-beta.7",
"angular": "^1.6.4",
"angular-material": "^1.1.4",
"angular-translate": "^2.15.1",
"angular-translate-storage-cookie": "^2.15.1",
"angular-translate-storage-local": "^2.15.1",
"angular-ui-router": "^1.0.3",
"jquery": "^3.2.1",
"bootstrap": "^3.3.7",
"bootstrap-select": "^1.12.3",
"json-loader": "^0.5.4",
"material-design-icons": "^3.0.1"
},
But when I run my page it says:
bootstrap.js?f974:8 Uncaught Error: Bootstrap's JavaScript requires jQuery
at eval (eval at <anonymous> (app.bundle.js:1094), <anonymous>:8:9)
at Object.<anonymous> (app.bundle.js:1094)
at __webpack_require__ (app.bundle.js:20)