Possible to use livewire in wordpress admin ?

Hi,

I try to use livewire in a WordPress admin page but I encounter the issue “livewire.update” route is not available.

I have enable the ->withRouting(wordpress: true) in the boot call of acorn, and I can see the route list in CLI.

Is it possible to use livewire in wordpress admin ? Am I missing something ?

Thanks

I have the same issue in FrontEnd. So, there is definitely something wrong in the way I set up acorn, I guess.

Here is what I do inside a plugin:

        add_action('after_setup_theme', function () {
            $app = Application::configure(__DIR__)
                              ->withRouting(
                                  web: base_path('routes/web.php'), wordpress: true
                              )
                              ->boot();
            $app->register(AdminPagesServiceProvider::class);
            $app->register(CommandsServiceProvider::class);
            $app->register(SpeedHackServiceProvider::class);
            $app->register(EventsServiceProvider::class);
            $app->register(Livewire\LivewireServiceProvider\LivewireServiceProvider::class);
        });

Ok, got it. As guessed previously, my acorn boot process was fucked up (multiple boot calls) in different contexts.