[Ocsigen] Building first example of Graffiti tutorial fails

Hello,

I’ve followed the first instruction on this tutorial: https://ocsigen.org/tuto/5.0/manual/application

The first “make” fails:

$ make test.byte
eliomdep -server -ppx -package lwt_ppx -package js_of_ocaml-ppx_deriving_json graffiti.eliom > _deps/graffiti.eliom.server
eliomdep -client -ppx -package lwt_ppx -package js_of_ocaml-ppx -package js_of_ocaml-ppx_deriving_json graffiti.eliom > _deps/graffiti.eliom.client
cat _deps/graffiti.eliom.server _deps/graffiti.eliom.client > .depend
eliomc -ppx -infer -package lwt_ppx -package js_of_ocaml-ppx_deriving_json graffiti.eliom
File "graffiti.eliom", line 1, characters 5-26:
1 | open Eliom_content.Html5.D (* provides functions to create HTML nodes *)
         ^^^^^^^^^^^^^^^^^^^^^
Error: Unbound module Eliom_content.Html5
Hint: Did you mean Html?
Makefile:158 : la recette pour la cible « _server/graffiti.type_mli » a échouée
make: *** [_server/graffiti.type_mli] Erreur 2

I’ve tried to change the “Eliom_content.Html5.D” as suggested, but Html is also “unbound module”.

Cheers,

Hello,

You are using an old version of the tutorial (5.0). Switch to the latest version using the selector in the page.

Vincent

1 Like