Target class [db] does not exist in Acorn v3.2


I ran into this error when I attempted to execute wp acorn optimize:clear after upgrading Acorn from v3.1.

I’m thinking it might be related to the database support #277. I also gave a shot at using the default DatabaseSeeder and loading it as described in the PR, but it still didn’t work out.

Did I miss something here? For now, I’m downgrading back to v3.1

λ wp acorn optimize:clear

In Container.php line 723:


In Container.php line 891:

  Target class [db] does not exist.  

In Container.php line 889:

  Class "db" does not exist  

Solved, I just realized that I had exposed the Acorn configuration. Adding the new providers in the config.php fixed the issue.