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'), }
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners