After successfully building the app locally with npm run prepublish I opened one of the playground files test/horizontal_playground.html but was unable to view any of the blocks UI.
Actual Behavior
I receive a list of ERR_FILE_NOT_FOUND errors in my web console:
blocks.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
colours.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
touch.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
events_abstract.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
variable_events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
variable_model.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
variable_map.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
comment_events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_comment.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
bubble.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
ui_events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
icon.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
comment.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scratch_bubble.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scratch_block_comment.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
connection.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
connection_db.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
constants.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
variables.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
data_category.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
dropdowndiv.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_animations.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scratch_events.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
rendered_connection.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
insertion_marker_manager.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_dragger.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_comment_svg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
bubble_dragger.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_dragger.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_dragger.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scratch_blocks_utils.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
tooltip.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
gesture.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
utils.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
grid.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
options.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scrollbar.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
trashcan.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_audio.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_comment_render_svg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_drag_surface_svg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
xml.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
zoom_controls.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workspace_svg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
mutator.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
extensions.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_label.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_label_serializable.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_variable_getter.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
input.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
warning.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
ui_menu_utils.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
contextmenu.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_svg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_render_svg_horizontal.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
msg.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_textinput.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_angle.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_checkbox.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_colour.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_colour_slider.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_dropdown.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_iconmenu.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_image.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_note.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_textinput_removable.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_textdropdown.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_number.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_numberdropdown.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_matrix.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_variable.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_vertical_separator.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
generator.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
names.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
procedures.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
scratch_msgs.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_button.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_extension_category_header.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_base.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_horizontal.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
flyout_vertical.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
toolbox.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
css.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
widgetdiv.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
block_drag_surface.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
inject.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
blockly.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
dragged_connection_manager.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
field_date.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
horizontal_playground.html:53 Uncaught TypeError: Blockly.inject is not a function
at start (horizontal_playground.html:53)
at onload (horizontal_playground.html:349)
Steps to Reproduce
After cloning the scratch-blocks repo, I make the following changes:
In order to resolve issues this namespace error when building:
Required namespace "goog.events.EventWrapper" never defined.
??? at line 57:
goog.requireType('goog.events.EventWrapper');
I added some require statements to blockly.js as described here
Then, to resolve shim errors described here, I ran npm run prepublish instead of npm install as described here
For reference, here's the entire log from successfully running npm run prepublish
Expected Behavior
After successfully building the app locally with
npm run prepublish
I opened one of the playground filestest/horizontal_playground.html
but was unable to view any of the blocks UI.Actual Behavior
I receive a list of
ERR_FILE_NOT_FOUND
errors in my web console:Steps to Reproduce
After cloning the scratch-blocks repo, I make the following changes:
In order to resolve issues this namespace error when building:
I added some require statements to
blockly.js
as described hereThen, to resolve shim errors described here, I ran
npm run prepublish
instead ofnpm install
as described hereFor reference, here's the entire log from successfully running
npm run prepublish
Operating System and Browser
I'm running on Mac 10.15.7 with node v14.15.1 and Python 2.7.16