godotjs / godotjs/GodotJS

Export builds don't seem to function properly in v8 for android or web

Open
#188 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
765
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Once I get an exported build running, I'm hitting all kinds of script errors. The build runs fine if I'm just using Godot nodes but as soon as I've attached a .ts script to a node I start getting problems. Specifically there is something wrong with get/set accessors so I'm unable to write to any properties on a node.

A very simple demonstration is to create a test scene with a sprite, then try to create a timer using this.get_tree().create_timer(1), and now try to connect to the timeout signal. I get an error that the timeout signal does not exist.

Alternately if I try to create the Timer node manually then set its properties and add it to the scene, I get an error that the properties have no set accessor.

Either example works fine just running the project directly in Godot, just the exported builds do not work.

(The same project using the qjs editor I'm able to export and run fine, so it's certainly an issue with the v8 editor and/or export templates)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.