TypeError: b is undefined

148 views
Skip to first unread message

Elia Suardi

unread,
Apr 17, 2017, 5:54:04 PM4/17/17
to Blockly

Hello again!

I was trying to add a custom block to the logic category in the toolbox in my local copy of blockly.

I followed the blockly documentation and I started by adding the block tag to the xml of the toolbox in my index.html file:




Then I added the json configuration to the logic.js file in the blocks/ folder:




and then I added the code generator in the logic.js file in generators/javascript/ directory:


When I tried running blockly in my browser (Firefox 52.0.2) this is what I see in the UI:


and so far no error has popped out in the developer console.

When I try dragging the block into the workspace and drop it i get an error:




And this is the workspace.js from the stack:




Am I missing something?

 

Thanks in advance

Elia Suardi

unread,
Apr 17, 2017, 6:21:34 PM4/17/17
to Blockly
Sorry for the trouble. Solved the problem!

Aleksandar Žukovski

unread,
Dec 20, 2017, 5:04:21 AM12/20/17
to Blockly
Hello, I have the same isue. What was the problem?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages