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:
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:
i try it but the problem continue
10 Replies
Did you run NPM on production server?
And have you checked if de build dir exsist on the production server?
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?
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?
i have this folder
So, no it does not exsists.
That is your problem.
Did you run NPM on that server or only local?
in both environments, i install npm in production if you ask about that bro!
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.
how i say, is not working bro
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!