How to resolve assets error in laravel @vite
@vite([‘resources/css/app.css’, ‘resources/js/app.js’])
Answer 1.
Use below commands
1. composer require laravel/breeze:1.9.4
2. php artisan breeze:install
3. npm install
4. npm install autoprefixer@10.4.5 –save-exact
5. npm run dev
Answer 2.
Replace the guest.blade.php and app.blade.php with this code
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<!-- Scripts -->
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<!-- @livewireStyles -->
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
</head>
<body>
<div class="font-sans text-gray-900 antialiased">
{{ $slot }}
</div>
<!-- @livewireScripts -->
</body>
</html>