Tested it on a new project. The issue doesn't seem to be project-specific since I'm still getting the issue on the new project.
Feb 16, 2025
5
Level 1
Vite Manifest not found - \public\resources/js/app.js/manifest.json
Hello! I seem to be having a problem with Vite. My website runs with the JS and CSS files I set up when I'm using npm run dev but when I try to launch the website after using npm run build and without using the VIte dev server, an error popups - Vite manifest not found at \public\resources/js/app.js/manifest.json.
I checked the files and manifest.json exists at public/build and all JS/CSS files are in build/assets but the problem seems to be that Laravel is referring to the wrong directory for the manifest. Is there a way to fix this?
Level 1
@RemiM Hello again! It seems I just missed something on my blade files.
My issue was that I was using
@vite('resources/css/app.css', 'resources/js/app.js')
and not
@vite(['resources/css/app.css', 'resources/js/app.js'])
Just some missing brackets. Apologies and thanks.
Please or to participate in this conversation.