Use reason module from local package

interop

#1

Hi,

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 ModuleA.re 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 ?


#2

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

bsb -clean-world
bsb -make-world

?