kristianmandrup / react-16.nim

React 16.x bindings for Nim 1.0 with example app (WIP)
Apache License 2.0
14 stars 1 forks source link

Example failing to compile with latest Nim (v1.2.4) #2

Open OldhamMade opened 4 years ago

OldhamMade commented 4 years ago
❯ nim js app.nim
Hint: used config file '~/.asdf/installs/nim/v1.2.4/config/nim.cfg' [Conf]
Hint: used config file '~/react-16.nim/example/nim.cfg' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: formatfloat [Processing]
Hint: app [Processing]
Hint: dom [Processing]
Hint: jsconsole [Processing]
Hint: jsffi [Processing]
Hint: macros [Processing]
Hint: tables [Processing]
Hint: hashes [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: algorithm [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: unicode [Processing]
Hint: sequtils [Processing]
Hint: sugar [Processing]
Hint: typetraits [Processing]
Hint: underscored_calls [Processing]
Hint: react16 [Processing]
Hint: rtypes [Processing]
Hint: react_styles [Processing]
Hint: reactapi [Processing]
Hint: svg_attrs [Processing]
Hint: rglobals [Processing]
~/react-16.nim/react16/reactapi.nim(3, 27) Warning: imported and not used: 'rglobals' [UnusedImport]
~/react-16.nim/react16.nim(1, 8) Warning: imported and not used: 'dom' [UnusedImport]
~/react-16.nim/react16.nim(2, 13) Warning: imported and not used: 'rglobals' [UnusedImport]
Hint: reactdom [Processing]
~/react-16.nim/react16/reactdom.nim(2, 8) Warning: imported and not used: 'react16' [UnusedImport]
~/react-16.nim/react16/reactdom.nim(1, 16) Warning: imported and not used: 'dom' [UnusedImport]
Hint: reacthooks [Processing]
~/react-16.nim/react16/reacthooks.nim(8, 5) Error: invalid indentation

Would be great to get this working, since hooks are very useful for simplification and reducing overall LoC.

kristianmandrup commented 4 years ago

Odd. I had it compiling last time I worked on it. Did you clone the latest? Check out the commit history. I'll have a look shortly. Disappointed about the lack of focus on the JavaScript side of Nim and the community effort on it, including integrations such as React.