TL;DR
import { Order } from 'blockly/javascript';
Fails to compile without // @ts-ignore flag
Temporary fix
Adding // @ts-ignore comment will allow it to compile and run without any noted errors
// @ts-ignore
import { Order } from 'blockly/javascript';
Details
Didn't have time to look too deeply into the issue, but this is what I've dug up from a cursory look:
Looks like Order is not being exported in the javascript.d.ts file - https://github.com/google/blockly/blob/blockly-v10.0.1/typings/javascript.d.ts
Might be because typescript does not like the export * from ... syntax in original javascript.js source - https://github.com/google/blockly/blob/blockly-v10.0.1/generators/javascript.js
TL;DR
Fails to compile without
// @ts-ignoreflagTemporary fix
Adding
// @ts-ignorecomment will allow it to compile and run without any noted errorsDetails
Didn't have time to look too deeply into the issue, but this is what I've dug up from a cursory look:
Looks like
Orderis not being exported in thejavascript.d.tsfile - https://github.com/google/blockly/blob/blockly-v10.0.1/typings/javascript.d.tsMight be because typescript does not like the
export * from ...syntax in originaljavascript.jssource - https://github.com/google/blockly/blob/blockly-v10.0.1/generators/javascript.js