Closed minemindmedia closed 2 years ago
please only use this repo for produceable bugs that are specific to acorn — this is not the repo for reporting issues for 3rd party packages
please only use this repo for produceable bugs that are specific to acorn — this is not the repo for reporting issues for 3rd party packages
We asked this on the Acf composer repo but they said it was a acorn issue. So that's why we published it here.
Hi @ashleyvansoeren I know that my reply is a little late. But today I've experienced the same issue reported by you.
In my case, I've discovered that for each package installed in sage 10 theme, you need to run the command below before publish the package assets:
wp acorn optimize:clear
Then you can publish the package's assets safely. Like:
wp acorn vendor:publish --provider="Log1x\AcfComposer\Providers\AcfComposerServiceProvider"
And @retlehs I think this is a acorn specific issue.
And @retlehs I think this is a acorn specific issue.
This is not an Acorn issue and all related issues that may have caused this situation have long been fixed.
Also, you generally shouldn't have to optimize:clear
after requiring a package if you have your composer.json
properly setup with post-autoload-dump
.
"scripts": {
"post-autoload-dump": [
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
]
}
Hi @Log1x, thanks for your reply.
Really, I didn't have the post-autoload-dump
entry in my composer.json
. Now, I've added it.
Thank you very much, bro!
Terms
Description
What's wrong?
Sometimes packages cannot be published.
What have you tried?
Please see steps below.
What insights have you gained?
None.
Possible solutions
None I am aware of.
Temporary workarounds
Adding the Laravel service provider manually to
/config/app.php
will work occasionally.Steps To Reproduce
Add ACF Composer to
/sage/composer.json
and update.Discover packages:
Publish packages: (ACF Composer not in the list):
Checking cache reveals ACF composer entry in array.
/current/web/app/cache/acorn/framework/cache
:Other packages can be discovered and published:
Additional information and users with same problem can be found here: https://github.com/Log1x/acf-composer/issues/109
Expected Behavior
Expecting
ACF Composer
to be listed in the set of available packages to publish:Actual Behavior
ACF Composer
package not becoming available.Attempting to generate ACF Field,
wp acorn acf:field Fleet
results in:There are no commands defined in the "acf" namespace.
After adding and publishing additional packages, ACF Composer is listed in cache but not functioning:
Relevant Log Output
No response
Versions
Acorn 2.0.3, Big Sur 11.6.1