Can you share your vite config file
Blank page on "/" route. Unable to locate file in Vite manifest
My browser displays a blank page when I navigate to localhost after starting Docker. There aren't any apparent errors in the browser itself, but the Network tab shows that the main route / has a status of 101, and the assets "app.js", "env.mjs, "and "client" have a status of 304. Other assets load without issue.
However, the logs display this message:
[previous exception] [object] (Exception(code: 0): Unable to locate file in Vite manifest: /resources/css/app.css. at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Vite.php:761)
[stacktrace]
Checking other answers here, I see that others had the wrong slash and that it could be fixed by running npm run build or upgrading npm. I tried that, what else should i do?
This is the manifest.json file.
{
"resources/css/app.css": {
"file": "assets/app-a6b76efc.css",
"isEntry": true,
"src": "resources/css/app.css"
},
"resources/js/app.js": {
"file": "assets/app-90f11733.js",
"isEntry": true,
"src": "resources/js/app.js"
}
}
@vite(['/resources/css/app.css', '/resources/js/app.js'])
Please or to participate in this conversation.