-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'prefix' of null #12482
Comments
How did you register the custom post type? Could you perhaps share that code here? The only place where I see |
Here's the args for the post type.
|
This occurred for me in 4.6.1 with custom post types with When set to And in the console:
|
Maybe related: #12677 |
I have the same issue. With Gutenberg 4.5.1 it works fine. Updating to GB 4.6.x breaks the code, disabled nearly all plugins besides Gutenberg and the one registering my posttype.
This is my code for the CPT Edit: Changing |
When adding a new custom post type, upon hitting "Save Draft", the "The editor has encountered an unexpected error." message appears, and this is the error message. This had been working in 4.5
Editing an existing custom post type shows the error immediately.
Additional context
The text was updated successfully, but these errors were encountered: