I am writing a program that needs to use
bs-xmlhttprequest and also needs
bs-webapi. It turns out that
bs-xmlhttprequest already has
bs-webapi as a dependency.
In my main program, if I install only
bs-xmlhttprequest, then this fails with
The module or file Webapi can't be found.:
module D = Webapi.Dom;
If I install both libraries and list them both in my
bsconfig.json, then the compile succeeds, but I get a warning:
Duplicated package: bs-webapi /home/david/client/node_modules/bs-webapi (chosen) vs /home/david/client/node_modules/bs-xmlhttprequest/node_modules/bs-webapi
How do I get what I want (a compile without errors or warnings)?