mhmiton / laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.
MIT License
187 stars 34 forks source link

Class "Livewire\Features\SupportConsoleCommands\Commands\MakeCommand" not found #31

Closed aeq-dev closed 1 year ago

aeq-dev commented 1 year ago

After upgrading to the latest version 1.6, Laravel 10, Livewire 2.x I'm getting this error on running module:make-livewire

pa module:make-livewire Payments/ImportPaymentData Accounting

Error 

  Class "Livewire\Features\SupportConsoleCommands\Commands\MakeCommand" not found

  at vendor/mhmiton/laravel-modules-livewire/src/Traits/CommandHelper.php:156
    152▕     }
    153▕ 
    154▕     protected function isClassNameValid($name)
    155▕     {
  ➜ 156▕         return (new \Livewire\Features\SupportConsoleCommands\Commands\MakeCommand())->isClassNameValid($name);
    157▕     }
    158▕ 
    159▕     protected function isReservedClassName($name)
mhmiton commented 1 year ago

@aeq-dev Can you run composer update first and try again, please?

aeq-dev commented 1 year ago

I did and still same error

mhmiton commented 1 year ago

Actually, this error comes from v1.7.0. Maybe for the auto-update, v1.7.0 was installed. So, you can remove this package and re-install again. Hopefully, it will work.

Note: Also, for my mistakes, I switched the v1.7.0 to v2.0.0. So, maybe you need to re-install v1.6.0.

aeq-dev commented 1 year ago

I removed the whole vendor folder and install it again, in composer : "mhmiton/laravel-modules-livewire": "^1.6",

Still same error :/

mhmiton commented 1 year ago

Please try again now, hope it will be work.

aeq-dev commented 1 year ago

Did you push anything ? No thing has been changed :)

mhmiton commented 1 year ago

I deleted just tag v1.7.0. Still, It's not working?

aeq-dev commented 1 year ago

Yes still error, and remove v1.7 doesn't change my composer coz it's using 1.6

mhmiton commented 1 year ago

I just re-install the v1.6.0, and it's working on my end. Can you try again to re-install, please?

aeq-dev commented 1 year ago

Now it works, thanks