Error: unbound module for local import of dune package

Ah ok, I misunderstood. Thus I’m retracting my previous claim and say that your project looks all very sensible.

It could be that pinning picked up your repo as a git repo and the changes in your project were not committed yet. You could try unpinning and then pin again using opam pin add --kind=path . and see whether this will install the right library archives and META files in /home/frelang/.opam/4.13.1/lib/ocaml_component_framework.

(As a last resort you could go around opam and use dune install to install the library into your switch. However generally I would recommend against it because then OPAM does not know about it and can’t install the correct dependencies etc, thus it would be better to try to get opam pin working)

If you have the repo public somewhere I can give it a try and see if it works on my machine.