When attempting to compile Appel v1.4 (remixed and exported to
Appel v1.4 remix.sb3.zip) (I was zipping around several projects to see what works), this error occurs:
TypeError: Cannot read property '0' of undefined
at /opt/develop/sb-edit/lib/io/leopard/toLeopard.js:893:19
at Array.map (<anonymous>)
at _loop_1 (/opt/develop/sb-edit/lib/io/leopard/toLeopard.js:887:93)
at Project.toLeopard (/opt/develop/sb-edit/lib/io/leopard/toLeopard.js:915:9)
at /opt/develop/sb-edit/sample/compile.js:8:13
My analysis indicates it's possible that the find call on the variable name entries returns undefined in several spots from the Appel project (75 instances).
This PR is a quick fix that allows the project to compile with sb-edit, but I'm unsure of the consequences of passing the undefined through in the larger context of compiling the app - a compiled Appel v1.4 does not actually run correctly, with graphical problems, and throwing the following error repeatedly:
Uncaught TypeError: Cannot destructure property 'text' of 't' as it is undefined.
at y._renderBubble (SpeechBubbleSkin.js:87)
at new y (SpeechBubbleSkin.js:28)
at w.getSkin (SkinCache.js:53)
at j.renderSprite (Renderer.js:421)
at j._renderLayers (Renderer.js:236)
at j.update (Renderer.js:296)
at G.render (Project.js:99)
at G._renderLoop (Project.js:111)
...though, it's entirely possible I'm compiling incorrectly. Here's my compiler code:
When attempting to compile Appel v1.4 (remixed and exported to Appel v1.4 remix.sb3.zip) (I was zipping around several projects to see what works), this error occurs:
My analysis indicates it's possible that the
find
call on the variable name entries returnsundefined
in several spots from the Appel project (75 instances).This PR is a quick fix that allows the project to compile with sb-edit, but I'm unsure of the consequences of passing the
undefined
through in the larger context of compiling the app - a compiled Appel v1.4 does not actually run correctly, with graphical problems, and throwing the following error repeatedly:...though, it's entirely possible I'm compiling incorrectly. Here's my compiler code:
I then attempt to run the output with
npx http-serve .; xdg-open http://localhost:8080
.