Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ihill2's avatar

new Laravel install - Vite not working

new Laravel install - docs say it uses Vite but code has Mix. And Vite includes fail.

Just base install and breeze using Laravel document instructions Windows PC local install node v17.1.0 npm v8.1.2

composer create-project laravel/laravel myapp php artisan breeze:install npm install npm run dev php artisan migrate

home page loads fine. But go to Login or register and you get massive SVG images and an include output as text. so Vite styling and setup not working. Note: also see Mix messages during npm run dev

package.json has a laravel mix entry. "scripts": { "development": "mix", ... "devDependencies": { "laravel-mix": "^6.0.6", but no Vite entries in it.

So what am I missing? Is there another step hat's needed or anything?

0 likes
5 replies
MaverickChan's avatar
php artisan -V

what does this command say? update your composer or laravel installer first.

1 like
ihill2's avatar

php artisan -V 8.83.18 laravel -V 4.2.11 Composer- V 2.2.3

And installed app via composer create-project laravel/laravel myapp So should have got latest laravel

ihill2's avatar

Finally got it up and working, So thanks for the advice helping me find what was missing.

I hate 'I fixed it' posts with no details of what was done to fix it Not helpful for people with same issue so...

Installed new copy of latest Xampp to get PHP latest version 8. Old Xamp was stuck on 7.4 which was too low for some of the upgrades

udpated composer: composer self-update

removed then re-added laravel: composer global remove laravel/installer composer global require laravel/installer

Then created a testapp with laravel and Breeze. Vite now installed and working.

Please or to participate in this conversation.