mo4islona / node-blockly

Blockly for Node.js and Browser via CommonJS module
133 stars 81 forks source link

Error: Blockly.Extensions is undefined #11

Closed Razaik25 closed 7 years ago

Razaik25 commented 7 years ago

I'm trying to use Blockly.Extensions with this library to do validations in the browser. But I get the error that Blockly.Extensions is undefined. Is there support for Blocky.Extensions in this library?

mo4islona commented 7 years ago

Hi there! Sorry for the delay. Are you using special browser version in a browser?

Latest version node-blockly

const Blockly = require('node-blockly/browser');
const keys = Object.keys(Blockly.Extensions)
console.log(keys)
["ALL_", "MUTATOR_PROPERTIES_", "register", "registerMixin", "registerMutator", "apply", "checkHasFunction_", "checkNoMutatorProperties_", "checkMutatorDialog_", "checkBlockHasMutatorProperties_", "getMutatorProperties_", "mutatorPropertiesMatch_", "buildTooltipForDropdown", "checkDropdownOptionsInTable_", "buildTooltipWithFieldValue", "extensionParentTooltip_"]
Razaik25 commented 7 years ago

Hi, This issue was resolved with the release of version. 1.0.17. I will close the issue. Thanks!!