google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.47k stars 3.71k forks source link

Flyout doesn't open in multiplayground on iOS #5796

Closed gonfunko closed 2 years ago

gonfunko commented 2 years ago

Describe the bug Attempting to open the flyout on google.github.io/blockly/tests/multi_playground.html plays angry clacking sounds (I think multiple overlapping keyboard tap sounds) and does not open the flyout.

To Reproduce

  1. Visit google.github.io/blockly/tests/multi_playground.html on an iPad.
  2. Tap on a category in the toolbox.

Expected behavior The flyout silently opens and shows the blocks in the chosen category.

Smartphone (please complete the following information):

Stack Traces (This all is shown on load, no additional output when tapping the toolbox category)

[Error] Error: Module Blockly.blocks.logic has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide. (anonymous function) (base.js:449:120) Global Code (logic.js:13) [Error] SyntaxError: Can't create duplicate variable: 'Msg' [Error] SyntaxError: Can't create duplicate variable: 'defineBlocksWithJsonArray' [Error] SyntaxError: Can't create duplicate variable: 'Msg' (x2) [Error] SyntaxError: Can't create duplicate variable: 'defineBlocksWithJsonArray' [Error] SyntaxError: Can't create duplicate variable: 'Msg' (x2) [Error] TypeError: Unknown block type: controls_if Block (block.js:218) BlockSvg (block_svg.js:153) (anonymous function) (workspace_svg.js:1050) domToBlockHeadless (xml.js:921) domToBlock (xml.js:600) (anonymous function) (flyout_base.js:696) (anonymous function) (flyout_base.js:611) (anonymous function) (flyout_base.js:544) (anonymous function) (toolbox.js:975) (anonymous function) (toolbox.js:884) (anonymous function) (toolbox.js:327) wrapFunc (browser_events.js:69)

gonfunko commented 2 years ago

Fixed by #5797.