Closed moukle closed 4 years ago
looks like that has some bit rot as it's not tested. I think this change fixes:
diff --git a/src/plotly/plotly_js.nim b/src/plotly/plotly_js.nim
index 454d707..e62b7e1 100644
--- a/src/plotly/plotly_js.nim
+++ b/src/plotly/plotly_js.nim
@@ -1,7 +1,8 @@
import jsbind
import jsffi
import dom
-import plotly_types
+import ./plotly_types
+import ./api
maybe @Vindaar can verify?
Yep, that's almost all that's needed. Thanks for the hint though, because in my current state I wouldn't have figured out quickly that this is due to the %
missing for one of the types. :)
And the resulting js
file is apparently not put into the nimcache
directory anymore, so the html template has to be changed. I'll open a PR.
Thanks for the fast response! :)
Hey there!
Am new to Nim, thus I am not sure if the fault is on my side but trying to compile the js example (
nim js fig8_js_interactive.nim
) yields following error for me:System:
1.2.0
.0.2.0