Struggling with bootstrap-icons Library in Vite.js #15424
Unanswered
oussama-he
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Did you try to change the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using vitejs and facing a problem with the
bootstrap-icons
library.I installed it like this
npm install bootstrap-icons
In the
main.js
file I wrote this:In my
style.css
file I imported the bootstrap-icons CSS file like this:However, the icons used in the HTML page do not appear, and I get this error in the console:
Other CSS rules work fine.
package.json
andvite.config.js
look like this:Please can someone help me to fix this problem?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions