However, I can run it by downloading it through the API.
The error when pressing “Play” is the following. It’s pretty cryptic to me. What am I doing wrong? Many thanks for your help in advance!
[[playcanvas-stable.js:67608]](https://code.playcanvas.com/playcanvas-stable.js): Cannot read property 'index' of undefined
TypeError: Cannot read property 'index' of undefined
at scriptType.__initializeAttributes (https://code.playcanvas.com/playcanvas-stable.js:67608:49)
at ScriptComponent._onInitializeAttributes (https://code.playcanvas.com/playcanvas-stable.js:54849:21)
at ScriptComponentSystem._callComponentMethod (https://code.playcanvas.com/playcanvas-stable.js:55457:49)
at ScriptComponentSystem._onInitialize (https://code.playcanvas.com/playcanvas-stable.js:55464:9)
at Function._helper (https://code.playcanvas.com/playcanvas-stable.js:35496:12)
at Function.initialize (https://code.playcanvas.com/playcanvas-stable.js:35501:9)
at Application.start (https://code.playcanvas.com/playcanvas-stable.js:61619:20)
at https://launch.playcanvas.com/editor/scene/js/launch.js:7379:25
at Application._preloadScripts (https://code.playcanvas.com/playcanvas-stable.js:61372:5)
at https://launch.playcanvas.com/editor/scene/js/launch.js:7362:21
Yes, it opens a browser window with a number. Since it is a private project, I have not shared the ID here in the public forum. So I‘ve removed the number.
However, I also checked the developer console in Chrome and that didn‘t reveal really any additional information.
Looks like you are using typescript and the scriptTypes defined are causing issues. It looks like attributes aren’t being created somehow. Has something changed recently as it looks like you have been working on this for a while?