Can not call the Custom Widget from the Button


Can not call the Custom Widget from the Button (Blocks category) from the submenu. The JS error is this “Cannot read properties of undefined (reading ‘id’)”. The same widget works fine from the Command block.
Here is the screen:


Sorry you are having trouble again. I am trying to recreate you extension so that I can test and find what your issue is. I might not get back to this until tomorrow. Thanks!


@Pavel using your code I was not able to make a functional extension, could you please provide the code used in the blocks and other areas?


@Best_codes , thanks for your help.
I’ve made a simple example (just does cobsole.log() ) that shows the problem. Here it is: (40.0 KB)


Thanks, but that file is the wrong format to import.


In this forum, there is no option to load .mext files. So, I’ve zipped the .mext and loaded it. Just unzip that.


OK, sorry. :blush:


From my research, it appears that mBlock has an error when you try to put a widget in a button. I’ll contact them about it and hope they fix it soon.




No problem! By the way, the mBlock weather extension has some custom widgets in it. I can send you the download link to the extension if you want.


Thanks @Best_codes , I’ve already got that from you****.mext


Yes, that was a private message… :slight_smile:


@Best_codes Sorry, I have not noticed :wink:
Now it is a private


Thanks. :grin:


@Pavel By the way, if you want to be able to delete posts and have other privileges (Polls, Hide Details, etc.), you can message @discobot and say @discobot start advanced user tutorial to take the tutorial now. You will get a badge and new privileges if you complete it. :blush:

@discobot roll (6, 8)


Hi! To find out what I can do, say @discobot display help.


@discobot roll 6, 2


@discobot display help why are you not working?


I currently know how to do the following things:

@discobot start new user

Starts one of the following interactive narratives: new user, advanced user.

@discobot roll 2d6

:game_die: 3, 6

@discobot quote

:left_speech_bubble: Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you — Princess Diana

@discobot fortune

:crystal_ball: You may rely on it


Ah, ok. I remember now.
@discobot roll 2d6
@discobot quote
@discobot fortune