Cannot read property 'children' of undefined


So world is not defined there.Replace "let"s with "var"s or "window."s

Without context I don't know what brought on this error. But if it was during the loading of a project, there was a bug fixed today in 6.2.0 that might be relevant; try loading again.

"defer" does not work for an inlined script

I removed defer but it still doesn't work

Edit: when I call the script from the setup script it works.