[Vuejs]-Html file src path errror and 404 not found

0👍

You could add a / in front of your asset src. It should solve the problem. Adding a / will make it look at the absolute path instead of the relative path.

Code:

div class="widget-content-left mr-3">
     <img src="/deneme.jpg">
</div>

0👍

Try to use require

<img :src="require('deneme.jpg')"> // deneme.jpg is path from this file to image

Leave a comment