DEV Community

Josh Robertson
Josh Robertson

Posted on

3 2

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!

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay