Open askvortsov1 opened 1 year ago
cc @hhugo
I've stumbled upon this too. When I did dune init project myproject
and then added (modes js)
to the executable, I was stuck. modes js
requires removing public_name
and removing public_name
causes the error message above.
Of course adding allow_empty
fixes it, but that's non-trivial to figure out
I was trying to build https://github.com/TyOverby/sdui, and got the following error message:
For context, the project consists of an executable compiled with
(modes js)
There's a few issues here:
dune
file was empty (or undefined), but that wasn't the case. I'm assuming it's trying to say that nothing is made importable viapublic_name
, but I only pieced that together by looking at other support questions with the same issue.(public_name<s>)
stanza to(executable<s>)
. But that's not allowed for(modes js)
.(package)
stanzas oropam
files? From my limited experience with OCaml, my impression was thatdune-project
andopam
files are mandatory for building, dependency-locking, locally installing, and setting metadata for any OCaml project, not just ones where code can be used by other projects.Reproduction
dune-project
:dune
:main.ml
:Specifications
dune
(output ofdune --version
): 3.10.0ocaml
(output ofocamlc --version
): 4.14.1