I am trying to use uuid-random
from npm
. I have this in my packages.json
:
"dependencies": {
"uuid-random": "^1.3.0"
}
and this in my .re
file:
[@bs.val] [@bs.module "uuid-random"] external uuid : unit => string = "uuid";
let testUuid = uuid();
at runtime, I get this error:
var testUuid = UuidRandom.uuid();
TypeError: UuidRandom.uuid is not a function
I am missing something obvious (to everyone except me). What is it?