Invalid block definition for type: move_block, when using blockly in Nextjs

166 views
Skip to first unread message

121_Amit Kharod

unread,
Oct 6, 2023, 11:59:49 AM10/6/23
to Blockly
I had no issues working with blockly within my react app. But in my Nextjs app, I had copied exact same code but getting this error,

blockly_error.png

I had used "use client" in every blockly component, and also tried to dynamically load the component using "next/dynamic" but still same error. Please help.

Beka Westberg

unread,
Oct 6, 2023, 1:41:32 PM10/6/23
to Blockly
Hello!

Did you copy over your block definitions as well? This is saying that the 'move_block' block definition is missing.

I hope that gives you somewhere to look! Best wishes,
--Beka
Reply all
Reply to author
Forward
0 new messages