mo4islona / node-blockly

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

goog missing in node-block/browser #38

Closed shane-lab closed 4 years ago

shane-lab commented 4 years ago

The new minor release (v1.2.1) caused the helper functions under goog to be missing.

Expected:

import * as Blockly from 'node-blockly/browser';

Blockly.goog.require('Blockly.utils');

Actual:

import * as Blockly from 'node-blockly/browser';

Blockly.goog.require('Blockly.utils'); // TypeError: Cannot read property 'provide' of **undefined**

Ref: issue #36

mo4islona commented 4 years ago

Please use

import * as Blockly from 'node-blockly/browser';
const utils = Blockly.utils

For example

Blockly.utils.genUid() // @9Znk4:7EZ7-*bO~~+w^