Generate fails with ERROR [vite]: Rollup failed to resolve import "/res/img/photos/..."
My app is running just fine in dev mode, but when I build, it fails with this error:
The images are all stored in the public folder, and referenced like this:
Am I missing something?
1 Reply
I think it may be because the images were in
/site/modules/theme/runtime/public
.
When I copy them to /public
it builds OK.
My folder setup is like this: