I’ve gotten a similar error when I was accidentally calling a library (Core, in my case) which was not supported by js_of_ocaml.
I’ve gotten a similar error when I was accidentally calling a library (Core, in my case) which was not supported by js_of_ocaml.