Error: Unbound module Lwt_js_events

I’m working through the below tutorial:

I’m guessing it isn’t up-to-date.

cd into ex then enter make, RET, which outputs:

Error: Unbound module Lwt_js_events

a) What steps need performed so that the tutorial examples work?

b) If a) is too broad, what steps do I need to take to correct the above error?

Thank you for your help!

Hello @re123,

Yes, it is exactly that.

To fix the error you mentioned, you have to write Js_of_ocaml_lwt.Lwt_js_events instead of Lwt_js_events. I don’t know if you have already changed this but you also need to replace occurrences of Dom and Dom_html by Js_of_ocaml.Dom and Js_of_ocaml.Dom_html respectively.

By the way, it is strange that the link Introduction brings one to even though the latest version of Eliom is 6.10.1 (see opam - eliom).

1 Like

Hello @ilankri,

Thank you so much!