• Welcome to Forum des utilisateurs de Blockly(s). Please login or sign up.
 

Custom Blocks

Démarré par uppermill, mars 10, 2021, 08:14:10 pm

« précédent - suivant »

uppermill

I am trying to create a new block, for the first time, using BlocklyArduino.

I can add the new category to the palette and the new block has the right colour and I can move it onto the canvas.

When I press the <Source> button I get the following error

TypeError: Cannot read property 'call' of undefined.

Can someone give me some guidance as to how I can narrow this error down?

Thanks for your help.

Allan

uppermill

I was able to open the Javascript Console using F8 and there was a tab to the console. The console showed a syntax error on a javascript file. I loaded the file into an online validator (one that ignored style) and identified a missing comma at the end of a line.

After I corrected the problem, everything worked as expected.

Allan

SebCanet

Hi,
I'm really sorry but all my documentation are outdated..no time to do this kind of work. But you can find information in French (and translate it) here: http://www.technologiescollege.fr/wiki/doku.php?id=fr:arduino:blockly_rduino:creerblocsmultiling
And also in englis (but really deprecated...): http://www.technologiescollege.fr/wiki/doku.php?id=en:blockly_rduino:create_blocks

I hope this could help... And if you want to contribute, all help are welcome!  ;D