nmerget / gott

Testing project for godot using typescript
MIT License
2 stars 0 forks source link

Godot does not care about scripts or crashes #75

Open Facundo15 opened 9 months ago

Facundo15 commented 9 months ago

Godot build: 4.1-v0.0.17-alpha-20231003

I want to import certain web3 modules to test them in Godot, but the files generated literally using tsx generate js or jsx files, but currently the version of this Godot build does not import js or jsx files, only mjs.

After seeing this I tried to change the esbuild configurations so that the generated files are .mjs, but most of the time godot crashes or cannot import them

I attach a screenshot of the errors

image

image

Edit: When you manage to import it, it generates that error "self" is not defined

nmerget commented 1 month ago

@Facundo15 thanks for your issue.

Haven't looked into this for a while. I updated the repo, maybe you can try it again.

Did you use this library for your test?