I have a qiute a lot of images that are shared across Angular components/pages, so I've created an images
folder inside the wwwroot
folder.
But whenever I try to reference an image from any.component.html
I get the following error:
Prerendering failed because of error: Error: Cannot find module "../build/images/logo/logo-light.png"
I tried to change the path from ../build
to build
, ~/build
etc. But that doesn't do the trick.
How can I solve this issue?