Here's the stack trace:

I'll check the generated Javascript, but I'm using the original Javascript Blockly library, I only use the d.ts definitions to get autocompletion in VS Code.
One thing that was different is that in Javascript I could just write:
var code = Blockly.Javascript.workspaceToCode(this.workspace);
But in Typescript in needed to instantiate a Blockly Javascript Generator:
this.blJSGenerator = new Blockly.Generator("JavaScript");
Is this a problem?