Having an issue rendering an SVG on the screen using CSS. File structure is as follows:
Root > Assets > Icon > user-icon.svg
. Attempting to add it using CSS like this:
.user-element {
background-image: url(/assets/icons/user-icon.svg);
}
The SVG is not showing up on the screen, and I'm encountering this console error:
GET http://localhost:4000/assets/icons/user-icon.svg 404 (Not Found)
Just looking to find the SVG in my local file system without making a network request. Any assistance would be appreciated. Thank you!