Hi there, I'm new to Laravel and I've created a small app that primarily uses CSS and JS scripts. Everything was working fine in my development environment, so I decided to push it to a production server. However, after installation, my code doesn't seem to recognize the CSS or JS.
When I run npm run build
, I can see that app-5134ec8e.js and app-a020c83f.css are created in the public/build/assets folders, indicating that the build process is running successfully.
Upon running npm run dev
, I receive the following output:
VITE v4.1.4 ready in 654 ms
➜ Local: http://127.0.0.1:5173/
➜ Network: use --host to expose
➜ press h to show help
LARAVEL v9.52.4 plugin v0.7.4
➜ APP_URL: http://phplaravel-960268-3351661.cloudwaysapps.com/
Despite this, there are no visible CSS or JS changes on the page.
If I try to stop
the npm run dev
command, I encounter the following error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `vite`
npm ERR! Exit status 1
npm ERR! ...
After inspecting the log file, I found the following message:
...
I've spent hours trying to troubleshoot this issue, but I'm still unsure of what it's trying to convey. Any help would be greatly appreciated.