F
Filamentβ€’10mo ago
TranceCode

Problem with Vite manifest not found in production when i create a Theme

Hey guys. i create a custom theme for my project and one of my Panel, this is working good in my local. now when i update this in my production site i get this error:
Vite manifest not found at: /var/www/html/public/build/manifest.json
Vite manifest not found at: /var/www/html/public/build/manifest.json
i reinstall the npm, i run npm run build and dev and return me this error, do you have any idea or recomendation? i check details about this in laracast and found this:
npm install --save-dev vite laravel-vite-plugin
npm install --save-dev vite laravel-vite-plugin
i try it but the problem continue
No description
10 Replies
Tieme
Tiemeβ€’10mo ago
Did you run NPM on production server? And have you checked if de build dir exsist on the production server?
TranceCode
TranceCodeOPβ€’10mo ago
I install npm and then I run npm run build, npm run dev and I have the same problem as I say in the post what mean if the buil dir exist?
Tieme
Tiemeβ€’10mo ago
If you FTP to /var/www/html/public/ does the build directory exsists? And did you run NPM Install and NPM run build on your production server?
TranceCode
TranceCodeOPβ€’10mo ago
i have this folder
No description
Tieme
Tiemeβ€’10mo ago
So, no it does not exsists. That is your problem. Did you run NPM on that server or only local?
TranceCode
TranceCodeOPβ€’10mo ago
in both environments, i install npm in production if you ask about that bro!
Tieme
Tiemeβ€’10mo ago
Oke, but if you run NPM on server than the build directory must be in public. As seen in your screenshot there is no build directory so NPM did not run oke.
TranceCode
TranceCodeOPβ€’10mo ago
No description
TranceCode
TranceCodeOPβ€’10mo ago
how i say, is not working bro
No description
TranceCode
TranceCodeOPβ€’10mo ago
i try with npm run dev and run build, can't understand this :squint: πŸ˜… Well, after a few try, i fix the problem updating the Node version to 18.xx and now it's working, thank you guys!
Want results from more Discord servers?
Add your server