If you're using React, I had similar issues where relative paths for images didn’t work, but absolute paths did. I found that placing images in the /public folder resolves the problem.
<img src="logo.png"/>