ftsf / nico

a Game Framework in Nim inspired by Pico-8.
MIT License
624 stars 35 forks source link

nimble webd error #104

Closed Angluca closed 1 year ago

Angluca commented 1 year ago

type Rect = tuple[int,int,int,int] var = Rect(int,int,int32,int32) # error

matkuki commented 1 year ago

Hey @Angluca Did you get an example to work with nimble webd? How did you get it to work? I compiled it successfully, but running it in the browser produces this error: #106

Angluca commented 1 year ago

@matkuki
I use nothing no error, nim version devel 1.9.x , emscripten v3.1.35 Maybe you use nim v1.6.8 ?

matkuki commented 1 year ago

Yes, I'm using 1.6.12, will try devel, thanks!

How are you running the example? I'm using a python server to serve index.html, is this the correct way?

Angluca commented 1 year ago

nimble webd emrun projectname.html