-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot unlock an object that was not locked before #228
Comments
I don't know what locking does and it may not be supported here. Have you looked at the Gutenberg code? |
Wow thanks for the quick reply! |
I would suggest supplying more props and some settings to the editor, as per the examples. You have probably triggered some error condition |
@kylefordui, I got the same error when I installed the @wordpress/data package at v9.5.0. It was gone once I installed the package at the version 9.1.0. |
I can't seem to get rid of this. Weirdly enough, only the Vite build system seems to trigger this issue for me. Running the code OP provided in a CRA app will allow it to run successfully. |
Same happening on our side. function App() {
return (
<IsolatedBlockEditor>
<EditorLoaded onLoaded={() => {}} onLoading={() => {}} />
<DocumentSection>Extra Information</DocumentSection>
<ToolbarSlot>
<button>Beep!</button>
</ToolbarSlot>
</IsolatedBlockEditor>
);
} Output V2.25.0:
Output V2.23.1:
If some required props are missing as specified in this message #228 (comment), would you mind @johngodley sharing which ones are the minimum parameters required for making a working editor? I've been searching them but I cannot manage to get the list of minimum required parameters. I've been two days fighting with this issue, without solution yet. All help is pleased 🙏 Best regards, |
I suspect you were using different versions of the |
Perfect. On my side it has been fixed automatically when I upgraded to version |
For anyone else still running into this, I had to make sure I was loading the version of |
@stevep How do you mean? I just upgraded to |
I managed to identify a cause and temporary solution. Initially, I installed As a workaround, I used Yarn's resolutions feature to fix the versions of the For me, this is just a stopgap measure, and I am still in search of a more permanent solution addressing the underlying issue. I hope this insight assists with troubleshooting and resolution of this issue. |
Gutenberg's modules are sometimes incompatible with different versions of other modules, and there's no easy way to handle this. The versions listed in the project I'm going to close this issue as it looks to be 'solved'. |
I am attempting to use this in a React environment, without WordPress but am getting the following error, not sure why. I have included an image of the error with the code being used. Any help would be greatly appreciated, thank you. I am running in a React environment with Vite.
The text was updated successfully, but these errors were encountered: