Skip to content

Conversation

@Zishan-Rahman
Copy link
Contributor

I've opened this as a draft PR as, at present, FlockXR doesn't even make it past the loading screen with the changes I've tried to make so far. On loading, I get these two errors and nothing happens afterwards:

Uncaught TypeError: can't access property "getBlockById", Blockly.getMainWorkspace() is undefined
    init scene.js:74
    fireChangeListener workspace.ts:811
    fireNow$$module$build$src$core$events$utils utils.ts:130
    setTimeout handler*node_modules/blockly/blockly_compressed.js/</fireInternal$$module$build$src$core$events$utils/< utils.ts:113
    fireInternal$$module$build$src$core$events$utils utils.ts:112
    fire$$module$build$src$core$events$utils utils.ts:97
    maybeFireViewportChangeEvent workspace_svg.ts:1232
    translate workspace_svg.ts:1246
    createMainWorkspace$$module$build$src$core$inject inject.ts:189
    inject$$module$build$src$core$inject inject.ts:60
    createBlocklyWorkspace blocklyinit.js:212
    onload main.js:410
    EventHandlerNonNull* main.js:391
scene.js:74:15
Uncaught (in promise) Error: Block "glide_to_object": Message does not reference all 7 arg(s).
    validateTokens block.ts:1975
    interpolate block.ts:1909
    jsonInit block.ts:1754
    init animate.js:171
    doInit_ block.ts:303
    Block$$module$build$src$core$block block.ts:284
    newBlock blockly.ts:391
    node_modules @blockly_toolbox-search.js:37
    indexBlocks block_searcher.ts:30
    initBlockSearcher toolbox_search.ts:144
    i toolbox_search.ts:42
    createToolboxItem toolbox.ts:415
    renderContents_ toolbox.ts:383
    render toolbox.ts:366
    init toolbox.ts:156
    init$$module$build$src$core$inject inject.ts:247
    inject$$module$build$src$core$inject inject.ts:62
    createBlocklyWorkspace blocklyinit.js:212
    onload main.js:410
    EventHandlerNonNull* main.js:391
block.ts:1975:13

I welcome anyone else who has any advice on how to fix this to offer said advice to me here 🙏

@tracygardner
Copy link
Contributor

Hey @Zishan-Rahman. I'm still away, but it was quick enough to paste into an LLM. You're not translating the message so it's trying to find the arguments in the literal string:

message0: "glide_to_object",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants