Custom Renderer Codelab: Failed to load resource: net::ERR_FILE_NOT_FOUND index.js

152 views
Skip to first unread message

Doug Brown

unread,
Mar 12, 2021, 5:50:43 PM3/12/21
to Blockly
I'm working through the codelab: https://blocklycodelabs.dev/codelabs/custom-renderer/index.html?index=..%2F..index#0

When I open the playground.html from tests/playground.html, I get the error Failed to load resource: net::ERR_FILE_NOT_FOUND index.js. 

Drilling down into playground.html, the line of code creating the error is:
script src="../node_modules/@blockly/block-test/dist/index.js"></script>

When I cloned the Blockly repo using NPM, it created a node_modules folder. There is no @blockly folder within node_modules

Is this error even relevant?

Maribeth Bottorff

unread,
Mar 15, 2021, 2:40:52 PM3/15/21
to Blockly
That script is for the test blocks (e.g. https://blockly-demo.appspot.com/static/tests/playgrounds/advanced_playground.html#toolbox=test%20blocks) which we use internally to test various aspects of blocks such as connection checker, shadow blocks, etc. If you don't want to bother with the test blocks, then yes you can ignore that, just make sure you select a different toolbox from the dropdown on the playground.

You can also run `npm install` which would install that package and then things will probably work.

Hope that helps, 
Maribeth

Reply all
Reply to author
Forward
0 new messages