Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gutenberg version: 3.7.0 - editor has encountered an unexpected error (plugin conflict Yoast SEO 8.1) #9516
Here's what I have found so far:
This console error means in general that a plugin is relying on the `wp-api` script being present in the page. This script is no longer present by default in Gutenberg because Gutenberg is not using it anymore. Plugins should add it as an explicit dependency if they rely on it.
Would you be able to help me identify which plugins are the source of the trouble in your case? I will help work to notify them and help the plugin developers figure out how to fix the problem.
To find the source of a plugin conflict, you can temporarily disable all plugins and try creating a new post. If the error disappears, then re-activate each plugin one-by-one and test creating a new post each time until you find which plugin triggers the error.
Oh that was easy... it's Yoast SEO.
I think it's got to do with the categories, in the classic editor you can select a primary category, in Gutenberg that option is not available anymore... I noticed on previous version of Gutenberg the categories section was very unstable. Would show a list of categories, and other times it wouldn't.
But that's just me guessing, but it's definitely Yoasts plugin Version 8.1