Hello,
With blockly VERSION: '7.20211209.1' I get the below error. If I read carefully you can see that the serialize load tries to create a block. The error happens on the highlighted line.
Does someone recoqnize this issue?
Regards,
Koen
Blockly.Blocks['model'] = {
init: function() {
this.appendDummyInput()
.appendField(new Blockly.FieldLabelSerializable("Model", null, ), "MODEL_LABEL")
.appendField(new Blockly.FieldNumber(7, -Infinity, Infinity, 1, null, ), "X")
.appendField(new Blockly.FieldNumber(7, -Infinity, Infinity, 1, null, ), "Y")
.appendField(new Blockly.FieldNumber(7, -Infinity, Infinity, 1, null, ), "Z");
this.appendStatementInput("PROPERTIES")
.setCheck(null);
this.setNextStatement(true, null);
this.setColour(65);
this.setTooltip("");
this.setHelpUrl("");
},
blockly_compressed.js:997 Uncaught TypeError: Cannot read properties of null (reading '3')
at new RenderedConnection (blockly_compressed.js:997)
at BlockSvg.module$exports$Blockly$BlockSvg.BlockSvg.makeConnection_ (blockly_compressed.js:1083)
at BlockSvg.module$exports$Blockly$Block.Block.appendInput_ (blockly_compressed.js:986)
at BlockSvg.module$exports$Blockly$BlockSvg.BlockSvg.appendInput_ (blockly_compressed.js:1079)
at BlockSvg.module$exports$Blockly$Block.Block.appendStatementInput (blockly_compressed.js:974)
at BlockSvg.init (eval at myFactoryGeneration (block_factory_workspace.js:1), <anonymous>:2888:10)
at BlockSvg.Block (blockly_compressed.js:935)
at new BlockSvg (blockly_compressed.js:1034)
at WorkspaceSvg.module$exports$Blockly$WorkspaceSvg.WorkspaceSvg.newBlock (blockly_compressed.js:1161)
at module$contents$Blockly$serialization$blocks_appendPrivate (blockly_compressed.js:343)
RenderedConnection
@
blockly_compressed.js:997
module$exports$Blockly$BlockSvg.BlockSvg.makeConnection_
@
blockly_compressed.js:1083
module$exports$Blockly$Block.Block.appendInput_
@
blockly_compressed.js:986
module$exports$Blockly$BlockSvg.BlockSvg.appendInput_
@
blockly_compressed.js:1079
module$exports$Blockly$Block.Block.appendStatementInput
@
blockly_compressed.js:974
init
@
VM102268:2888
Block
@
blockly_compressed.js:935
BlockSvg
@
blockly_compressed.js:1034
module$exports$Blockly$WorkspaceSvg.WorkspaceSvg.newBlock
@
blockly_compressed.js:1161
module$contents$Blockly$serialization$blocks_appendPrivate
@
blockly_compressed.js:343
module$exports$Blockly$serialization$blocks.appendInternal
@
blockly_compressed.js:342
module$exports$Blockly$serialization$blocks.append
@
blockly_compressed.js:340
module$contents$Blockly$serialization$blocks_BlockSerializer.load
@
blockly_compressed.js:352
load
@
blockly_compressed.js:1645
xhr.onload
@
block_factory_workspace.js:760