Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

umairparacha's avatar

Unable to locate file in Vite manifest: resources/images/home/hero.png.

EVERYTHING WORKS FINE when I am in development mode, but when I build the assets, it gives this error.

0 likes
2 replies
shariff's avatar

@umairparacha is this path resources/images/home/hero.png exist? Can you show your vite.config.ts file?

1 like
umairparacha's avatar
umairparacha
OP
Best Answer
Level 7

@shariff I found the solution. As I am building a blade application. I need to specify the static assets path in the application entry point, like the app.js file.

import.meta.glob(['../images/**'])

Please or to participate in this conversation.