DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Josh Robertson
Josh Robertson

Posted on

ReasonML Warning: Unimplemented primitive used

If you run into the issue Warning: Unimplemented primitive used:put or whatever put is for you, it's probably because you forgot to include the [@bs.module "<library>"] or any other FFI before your wrapping.

For example:

external putJson: (string, Js.Json.t) => request = "put";
Enter fullscreen mode Exit fullscreen mode

which gave me the error above ^. The fix?

[@bs.module "superagent"] external putJson: (string, Js.Json.t) => request = "put";
Enter fullscreen mode Exit fullscreen mode

At least that was the case for me. (:

Top comments (1)

Collapse
 
mrmurphy profile image
Murphy Randle

Thanks for posting that!

๐ŸŒš Browsing with dark mode makes you a better developer.

It's a scientific fact.