#Vite manifest not found at: C:\xampp\htdocs\laravel\public\build/manifest.json

10 messages · Page 1 of 1 (latest)

gusty dagger
#

Hello I am learning laravel and I got this error
I am doing this commands

  • composer require laravel/ui
  • php artisan bootstrap --auth
  • npm install
  • npm run dev
  • php artisan serve

it said manifest not found but when I check the name of the file is mix-manifest.json not manifest.json

Please tell me what is wrong and what I should do. I really appreciate your help! Thanks.

cosmic current
cosmic current
gusty dagger
#

I think I followed the docs correctly, and somehow the problem still occurs sorry I forgot to mention Im using laravel 9

cunning smelt
#

Probably because you have Mix installed, not Vite? AFAIK the swap to Vite happened somewhere during v9, so if your project was created before that, you need to manually migrate to it.

gusty dagger
# cunning smelt Probably because you have Mix installed, not Vite? AFAIK the swap to Vite happen...

finally logged in, that was a hella long troubleshooting, and yeah, my JSON file was using Mix, so I changed it to Vite and added "type": "module" at the top of the JSON file according to https://github.com/laravel/vite-plugin/issues/279

GitHub

Vite Plugin Version 1.0.1 Laravel Version 10.39.0 Node Version 21.2.0 NPM Version 10.2.3 Operating System macOS OS Version 14.2.1 Web browser and version Google Chrome Latest Version Running in Sai...

gusty dagger
cunning smelt
gusty dagger
#

haha yeahh, thank you :))