I created a new Single Type named Alert with the following fields:
alert: Text
url: text
visible: Boolean (default to false and required)
When I go to Content Manager > Single Types > Alert as a Super Admin, add an alert, url, and check visible to TRUE, I can click Save and everything looks good. When I click Publish, I receive the error “Warning: Not Found”. If i check the Console > Network > Fetch/XHR, there is a 404 Not Found error for the numberOfDraftRelations request.
Strapi v 4.12.5. I have the same situation with a collection. When publishing an item, an error is thrown. Downgrading the version to 4.11.7 solves the problem.
I was seeing the same issue, but when I removed the build and .cache directories from my Strapi instance and re-ran the build script I can now publish content types using 4.12.5
Same issue.
After I upgrade strapi from 4.11.7 to version 4.12.7 and this publish error occur.
Here is the fix:
remove build and .cache folders, rebuild the project npm run build and then the error gone.