Unable to find component : [notifications]

Hello everyone, I have a problem with Filament 3. To begin with, I have only installed the "Notification" package. When I'm in "npm run dev" development, notifications work without any problem. However, when I put my project into production with "npm run build", and host it on my server, I get this error: Unable to find component : [notifications] Here's the line that causes this problem: @livewire('notifications') It's in my app.blade.php file, which is also used as a layout for Livewire, here's the head : <head> <meta charset="utf-8"> <meta name="theme-color" content="#000000"/> <link rel="apple-touch-icon" href="{{ asset('logo-pwa.png') }}"> <link rel="manifest" href="{{ asset('/manifest.json') }}"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>@yield('title')</title> @FilamentStyles @livewire('notifications') @FilamentScripts @vite(['resources/css/app.css', 'resources/js/app.js']) </head> I also tried to put : @livewire('notifications') @FilamentScripts @vite(['resources/css/app.css', 'resources/js/app.js']) In the body it doesn't work either. I think the error comes from the fact that, in production, it can't find @livewire('notifications'). Here are the technical specifications: Laravel: 10 Livewire: 3 Filament: 3 Hoping to receive some help, have a nice day!
Solution:
hello everyone, thank you for your reply. Indeed, I had forgotten to run a "composer update" on my ssh...
Jump to solution
3 Replies
Dennis Koch
Dennis Koch2mo ago
It’s unrelated to npm. Filament is installed via composer. Did you deploy with the complete vendor folder?
Solution
Nathan Lab
Nathan Lab2mo ago
hello everyone, thank you for your reply. Indeed, I had forgotten to run a "composer update" on my ssh
Dennis Koch
Dennis Koch2mo ago
You shouldn't run composer update on production. composer install should be enough.