Custom Blocks

Démarré par uppermill, Mars 10, 2021, 08:14:10 PM

« précédent - suivant »


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.



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.



I'm really sorry but all my documentation are time to do this kind of work. But you can find information in French (and translate it) here:
And also in englis (but really deprecated...):

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