This is what I have used in a project
:src="require('../../assets/img/logos/' + vendor.vendor_identifier + '.png')"
Webpack needs you to restrict the amount of possible files by giving it a part of the path as a literal string, at least - or the whole path, in the best case.
Relevant docs: https://webpack.js.org/guides/dependency-management/#require-with-expression
So the method everyone mentioned is basically correct but you just have add half the path inside the require('../../assets/img/logos/')
. Also can you show what you are sending in {{book.imageUrl}}
?
First I would hard code the link/path sent in book.imageUrl
and see if the error exists