Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find component: [navigation] #4

Open
Kubagus opened this issue Apr 1, 2024 · 0 comments
Open

Unable to find component: [navigation] #4

Kubagus opened this issue Apr 1, 2024 · 0 comments

Comments

@Kubagus
Copy link

Kubagus commented Apr 1, 2024

``
D:\laragon\www\Blog-Advanced-With-Laravel10-TailwindCSS-And-AdminLTE3\vendor\livewire\livewire\src\Mechanisms\ComponentRegistry
.php

: 116

        if(! class_exists($class)) {

            foreach ($this->missingComponentResolvers as $resolve) {

                if ($resolved = $resolve($nameOrClass)) {

                    $this->component($nameOrClass, $resolved);



                    $class = $this->aliases[$nameOrClass];



                    break;

                }

            }

        }

    }



    // Now that we have a class, we can check that it's actually a Livewire component...

    if (! is_subclass_of($class, Component::class)) {

        throw new ComponentNotFoundException(

            "Unable to find component: [{$nameOrClass}]"

        );

    }



    // Convert it to a name even if a name was passed in to make sure we're using deterministic names...

    $name = $this->classToName($class);



    return [$class, $name];

}

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant