roots / acorn

Laravel components for WordPress plugins and themes
https://roots.io/acorn/
MIT License
819 stars 94 forks source link

Exception after installing Ignition #389

Closed oliverhildner closed 3 months ago

oliverhildner commented 4 months ago

Version

4.3

What did you expect to happen?

I installed Laravel Ignition as described in the documentation: $ composer require spatie/laravel-ignition --dev $ wp acorn optimize:clear from a sage-theme folder. From that moment on, wp acorn optimize:clear throws an exception.

What actually happens?

wp acorn optimize:clear throws an exception: Declaration of Illuminate\Console\Application::add(Symfony\Component\Console\Command\Command $command) must be compatible with Symfony\Component\Console\Application::add(Symfony\ Component\Console\Command\Command $command): ?Symfony\Component\Console\Command\Command

Steps to reproduce

System info

macOS 14.5 - Docker environment Php 8.3

Log output

No response

Please confirm this isn't a support request.

Yes

retlehs commented 3 months ago

Steps I followed from the themes directory:

  1. composer create-project roots/sage
  2. cd sage && composer require roots/acorn && yarn && yarn build && wp theme activate sage && wp acorn acorn:install
  3. Select yes on the acorn:install prompts
  4. composer require spatie/laravel-ignition --dev
  5. wp acorn optimize:clear

Then I added a {{ $hello }} to a template:

image

Feel free to create a topic on Roots Discourse if you need additional help, but there doesn't appear to be any issues with our docs that outline these steps