0
I have a problem integrating bootstrap.js, Popper.js and jquery.js scripts into my Angular project. I’ve made some attempts, but nothing has solved so far.
My scripts are being embedded as follows:
"styles": [
"./node_modules/bootstrap/scss/bootstrap.scss",
"src/styles.scss"
],
"scripts": [
"node_modules/jquery/dist/jquery.js",
"node_modules/popper.js/dist/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.js"
]
One important note: Bootstrap’s Css is being loaded correctly and working perfectly. I’ve tried putting a ./
to try to get the current directory reference.
Friend pq vc put . js twice? Your folder name has . js? vc put "Popper.js/dist/Popper.js" wouldn’t just be "Popper/dist/Popper.js"
– hugocsl
Unfortunately no, @hugocsl. The path is the same.
– Thiago Cunha
As you are using Sass makes itself different to import style, see my answer.
– Eduardo Vargas