Vue Router warning for background-image
I do not know why i keep receiving the Vue router warning on background-image and it doesnt display, when the image path is correct. <img src> able to display the image, the very same image.
1 Reply
The issue is that vite will transform the img src into the correct path but it doesn't know to do it for the style background-image. You could move it into your
~/public
directory and reference it with absolute path, or import the url to the image into your component.