install scrollbar plugin and inject ime comes this eroor.

65 views
Skip to first unread message

Vaibhav Goti

unread,
Sep 9, 2021, 10:09:47 AM9/9/21
to Blockly
Hello
i am installing third-party plugin for scrolling in blockly but comes this type of error.

hear I attaching code of the inject time use code:

it's use in useedect function in react js.

code:
    // Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
  toolbox: toolboxCategories,
  plugins: {
      // These are both required.
      'blockDragger': ScrollBlockDragger,
      'metricsManager': ScrollMetricsManager,
    },
});

// Initialize plugin.
const plugin = new ScrollOptions(workspace);
plugin.init();


Error:
aaa.JPG

Aaron Dodson

unread,
Sep 10, 2021, 5:40:15 PM9/10/21
to Blockly
Which version of Blockly are you using? I believe the ScrollOptions plugin requires the latest 6.20210701.0 release; from the error message it sounds like the plugin may be attempting to register itself, but Blockly.registry.Type.BLOCK_DRAGGER is undefined.

Vaibhav Goti

unread,
Sep 11, 2021, 5:00:32 AM9/11/21
to Blockly

Hello

     Current version is
                   "react-blockly""^7.0.0-alpha.1",


Thank you.

Abby Schmiedt

unread,
Sep 13, 2021, 1:42:49 PM9/13/21
to Blockly
Hello!

We do not actually maintain react-blockly and it looks like it is still on the previous version of Blockly. You might want to check in with the maintainer to see if/when he is planning on updating to the latest version. 

Cheers, 
Abby 
Reply all
Reply to author
Forward
0 new messages