For some time, many people including me have been facing problems installing Laravel's UI package due to the update of Vite from webpack to Laravel 9.19. In fact Laravel 9.19 has changed from Laravel Webpack to Viet.
So let's start knowing how to install Laravel UI package with Laravel Vite (How to install Laravel UI package with Laravel Vite) Step Step Install Laravel UI package for Bootstrap composer require laravel/ui
Paste this code & then remove resources/css/app.css import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import path from 'path' export default defineConfig({ plugins: [ laravel([ 'resources/js/app.js', ]), ], resolve: { alias: { '~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'), }