@Snapey Thanks for replying, I updated package.json as per your link
And then closed all, ran php artisan serve and then npm run watch.
PS C:\xampp8\htdocs\Project2\basic> npm run watch
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> watch
> vite build --watch
vite v3.0.2 building for production...
watching for file changes...
build started...
ā 59 modules transformed.
public/build/manifest.json 0.23 KiB
public/build/assets/app.72cbd360.css 25.25 KiB / gzip: 4.95 KiB
public/build/assets/app.ab93cf8a.js 129.03 KiB / gzip: 46.77 KiB
built in 16109ms.
Loaded login page in fresh opened inprivate/incognito window, gave error
Exception PHP 8.1.6 9.21.3
Unable to locate file in Vite manifest: resources/css/app.css.
Then, terminated 'watch' and ran npm run dev, then login page loaded without error.
But, if I modify my view (.blade.php), then the UI breaks. Asset files become 404. To resolve, I have to restart both commands (php artisan server) (npm run dev) in separate window, then it loads correctly.