Closed drjonnicholson closed 2 years ago
Hi @drjonnicholson
The @what3words/api
provides two built-in Transports which are both optional and you can specify either depending on your environment. If you are running the code in a browser environment and wish to use a built-in transport I would recommend using the fetch
transport which uses the peerDependency cross-fetch
. In node based environment you can use either cross-fetch
or axios
, but you must install the peer dependency yourself.
Please look at the Transport Documentation as this is documented there on how to use Transports (as well as using your own Custom Transport for executing requests to our API).
Thanks.
Hi,
We have builds failing due to the library wanting both Axios and CrossFetch installed
Should there be some optionality in the package peer deps meta?