Include Livewire in package and install in an application with Livewire (Jetstream)

TLDR;
I have a problem while including my package with livewire into a project which has livewire.

What seems to be the problem:
Whenever I’m trying to install my package that uses Livewire into an application that has already Livewire as a requirement, it breaks the application.

Steps to Reproduce:

  1. Create a new application with Laravel Jetstream, register, login and check the dashboard.
  2. Include a package that actively uses Livewire.
  3. In my case, I get the error:

Call to undefined method Facade\Ignition\Views\Engines\CompilerEngine::startLivewireRendering() (View: /Users/belli/code/testj/resources/views/layouts/app.blade.php)

If I remove the package, it works again.

Are you using the latest version of Livewire:
yes, in both cases.

Do you have any screenshots or code examples:
I define Livewire like this in my package:

 "extra": {
        "laravel": {
            "providers": [
                "alessandrobelli\\Lingua\\LinguaServiceProvider",
                "Livewire\\LivewireServiceProvider"
            ],
            "aliases": {
                "Livewire": "Livewire\\LivewireServiceProvider",
                "Lingua": "alessandrobelli\\Lingua\\LinguaFacade"
            }
        }
    }

Otherwise I get the error Illuminate\Contracts\Container\BindingResolutionException : Target class [livewire] does not exist. discussed here.

I really think that the package development page needs improvement. Maybe I will write something after I can solve this.

Solved it.
The problem is this one: https://github.com/livewire/livewire/issues/711
and by I solved by putting my package as the last one in the array in bootstrap/cache/packages.php.
Pretty sure it’s a bug…