Error: This expression has type Dom_html.divElement Js.t but an expression was expected of type < get : int -> 'a Js.meth; terminal : 'b -> 'c -> unit Js.meth > Js.t

Yeah, it is because jsoo with dune dev profile isn’t doing the dead code elimination. (See here and here.)

1 Like