I have school project where I need to create a game with ocsigen (eliom, etc..)
I’ve generated a project with eliom-distillery and I’m trying to execute some js throught js_of_ocaml, but it seems to crash before doing anything (I can’t log in the console)
The reason seems to be that bigstringaf not implemented.
Can someone explain how can I implement it? It seems to be installed. Maybe it doesn’t compile with it.
For the record, I’ve generated a basic.ppx template project.
How are you running the JavaScript? I would expect you to include it in a web page, in which case you can access the browser console.
How do you know the problem comes from bigstringaf? If it is an exception saying <function name> not implemented, you should have gotten warnings about this when you compiled the project. Was it the case?
For now, I’m trying to update the page and add multiple <div>
I’m using Html.Manip.appendChild ~%elt c.elt; where c.elt is a <div>. Also, I’m trying to log in the console at some point of the program but none of the print happends. For me, I’m using js_of_ocaml to run JS.
I have in fact Bigstringaf not implemented in the console. And it throw a warning when I compile the project, yes.
And it is very strange that even with the program not edited (basic.ppx template), I had this error (Bigstringaf not implemented)
Also as pointed out with @dbuenzli you are using a deprecated Makefile and template. I don’t know how you used eliom-distillery but I would advise that you create a new, more up-to-date template (eliom-distillery -template app.exe -name <PROJECT NAME>) and copy your files there; otherwise you risk having some features that don’t work.