navi: Target class [navi] does not exist. Sage 10 release (March 1st, 2022)

With the latest release of sage 10 (yesterday), I am attempting to load this and am getting this same error. I copied the example for sage 10 exactly and then found this thread and attempted wp acorn optimize:clear on my local and receive the following error via terminal:

/current$ wp acorn optimize:clear

Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

Not sure what is happening here?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Ok, thanks! That worked. Leaving further instructions if anyone else is interested:

  1. Publish config for Acorn
wp acorn vendor:publish

Choose Roots\Acorn\Providers\AcornServiceProvider

  1. Include Navi inside providers (config/app.php)
Log1x\Navi\Providers\NaviServiceProvider::class,

This should hopefully be fixed now with Acorn 2.0.3

@minemindmedia , all the credit goes to @Log1x. I simply put his instructions into a list 😃.

Not 100% sure at the moment. It seems some people are having the issue while others are not. I think it’s more likely to see the issue with multiple packages installed though. I’ve raised the issue internally & will try to get an issue raised on the Acorn tracker tonight.

In the mean time, the best you could do is publish the configs for Acorn and add Navi and any other package manually to Providers in config/app.php