Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sakarya's avatar

Livewire Unable to find component: [user-navigation]

Hi.

I've just installed jetstream with livewire. I've changed navigation-menu file name to user-navigation, and changed @livewire('navigation-menu') directive to @livewire('user-navigation') in layouts/app.blade.php.. but taking component not found error..

What the reason is? where is the component list?

0 likes
13 replies
vincent15000's avatar

Have you also changed the class name inside the controller ?

sakarya's avatar

Which class? I dont see any class files in Controller folder.

1 like
vincent15000's avatar

@sakarya Somewhere in the app folder, you have a Livewire folder. Inside the Livewire folder, you have some Livewire controllers.

sakarya's avatar

@vincent15000 BEcause of using jetstream no Livewire folder. For once, it is a blade component. There is a something wrong, but I couldn't find what it is.

2 likes
ndachi's avatar

After running 'php artisan jetstream:install' did you remember to run npm installl then npm run build?

1 like
darthleslin's avatar

There is a way to do this..

Move the navigation.blade file inside views/components .

Then reference it in app.blade.php or anyother blade by,

<x-navigation />

1 like
b6sh's avatar

I was trying to do the same thing (changing the navigation-menu.blade.php file name), and it's a livewire component. Looking at the jetstream vendor files I can see the component in vendor\laravel\jetstream\src\Http\Livewire\NavigationMenu.php:

<?php

namespace Laravel\Jetstream\Http\Livewire;

use Livewire\Component;

class NavigationMenu extends Component
{
    /**
     * The component's listeners.
     *
     * @var array
     */
    protected $listeners = [
        'refresh-navigation-menu' => '$refresh',
    ];

    /**
     * Render the component.
     *
     * @return \Illuminate\View\View
     */
    public function render()
    {
        return view('navigation-menu');
    }
}

If you need to rename the component to something else, you have to override the naming in this component. I am not sure how tho :)

1 like

Please or to participate in this conversation.