Blockly default context menu

20 views
Skip to first unread message

Jing An Tew

unread,
Oct 2, 2025, 10:13:53 AM (23 hours ago) Oct 2
to Blockly
Somewhere from updating from old blockly (v10) to the most recent version, the default context menu stopped working for my existing code?

Attached below is the error, for context, I do not have any custom context menu or any other code that edits the context menu in any way. Is there a changelog or something I'm missing when I updated from v10 to v12?

Thanks.

Screenshot 2025-10-02 221245.png

Maribeth Moffatt

unread,
Oct 2, 2025, 12:29:16 PM (21 hours ago) Oct 2
to Blockly
The `DELETE_X_BLOCKS` message still exists in the current version of Blockly, so I don't think this is actually an issue with the context menu.

Are there any messages in `Blockly.Msg`?

How are you importing Blockly? If you haven't loaded the messages before you inject the workspace, you might get this error. Double check your import statements against the docs here. If you're using script tags you just need to load the appropriate message file, but if you're using imports then you also need to call `setLocale` before you inject Blockly.

Best,
Maribeth

Maribeth Moffatt

unread,
Oct 2, 2025, 12:32:22 PM (21 hours ago) Oct 2
to Blockly
P.S. You can view changelogs in the release notes on our GitHub. The major version changes contain breaking changes and often have additional context for what changed and what you might need to fix. In the description of each PR in the "breaking changes" section there will be some notes about how to tell if you're impacted and what to do. Here are the notes for v11 and v12

Jing An Tew

unread,
Oct 2, 2025, 1:00:15 PM (20 hours ago) Oct 2
to Blockly
Hi Maribeth, 
The Blockly.Msg was indeed the issue! Seems like I missed a few changes when jumping from v10 to v12, will take a closer look once again just in case I'm missing anything.

Thanks for the explanation and links to the release notes!
Reply all
Reply to author
Forward
0 new messages