I am using laravel 11 and Vue js with Vite support. my Laravel is running but npm is not running that is why I am getting a blank page as I am assuming.
I run npm build and uploaded those build files to the public. but still, nothing happened. also do not know how to use that. can you tell me step by step host the Laravel Vue JS project using Vite in your hosting?
I am getting 404 error on my site. where the resources folder is not reachable. My Laravel code is running but Vue js code is not running. I have run npm build and uploaded the build files to a public folder. but still the same issue. I do not now how to run Laravel Vue JS-based project in here using VITE. help me to step by step guide.
Check there image where you can find resources/js/app.js file
The resources/js/app.js is the raw, unprocessed source code. For basically every front-end framework, you need to run some kind of compilation step to turn the source code into Javascript that can be used in browsers.
With Laravel, that would usually involve running the command npm run build in your project folder. Because you can’t run that command on our hosting, you will have to run it on your own computer, and uploaded the files generates in the public folder to your hosting account with us.