[Fix] @vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”

The Error “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”, is an error that is invoked when you are working laravel version 8 and are trying to install some packages. Given below is the snippet of the error you might get:

@vite (['resources/ css/ app.css', 'resources/ js/ app.js'])

I would like to share with you the steps I took to fix the “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”

Why “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])” Error is Seen?

The error, “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])” is seen because Vite is not supported by Laravel 8 version now.

You will need to install an earlier version of Laravel Breeze because Vite is not supported by Laravel 8. Laravel 8 and version 1.9.4 works very well to solve this error.

Laravel is a web application framework that has expressive and beautiful syntax. We’ve already set the groundwork, allowing you to focus on creating rather than worrying about the details.

Laravel appreciates design. it  appreciate clean code as much as you do. Amazing functionality is at your fingertips thanks to simple, elegant syntax.

Every feature has been carefully examined in order to deliver a fantastic development experience.

In latest Laravel version 8 and 9, Vite is no more supported.

so to fix the error, when you use the below command to install laravel version 8:, it also install the latest version of breeze version 1.10 with Laravel 9 Vite:

composer require laravel/breeze --dev

The detailed solution to fix the error “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”, is given below:

How to Fix “@vite([‘resources/css/app.css’, ‘resources/js/app.js’])” Error?

To fix the error “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”, You will need to install an earlier version of Laravel Breeze because Vite is not supported by Laravel 8 version. Laravel 8 and version 1.9.4 works very well to solve this error.

To fix the error, “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])“, you will have to follow the steps mentioned below:

First, You will need to install an earlier version of Laravel Breeze because Vite is not supported by Laravel 8. Laravel 8 and version 1.9.4 works very well to solve this error.

To install laravel breeze version 1.9.4 follow the below mentioned command:

composer require laravel/breeze:1.9.4

This should fix the error, “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”

Conclusion

To fix the error “@vite ([‘resources/ css/ app.css’, ‘resources/ js/ app.js’])”, You will need to install an earlier version of Laravel Breeze because Vite is not supported by Laravel 8. Laravel 8 and version 1.9.4 works very well to solve this error.