Use reason module from local package




I’m looking for a way to use a local package (named bs-package) from my Reason React app (named ApplicationA).

bs-package has a single file within src folder called which contains a single function greet_me

In ApplicationA I did :

npm install /path/to/BsPackage

Then added bs-package to bs-dependencies in bsconfig

In a *.re file in ApplicationA i’m trying to use ModuleA.greet_me but I receive

“unbound module ModuleA”

What am I missing ?


Just to set a baseline–I assume you then ran in the ApplicationA project root:

bsb -clean-world
bsb -make-world