Closed esride-nik closed 2 years ago
Hi @esride-nik,
We recently made an update to the node-wrapper
that means you now need to import the transport you'd like to use and pass that in explicitly. This resolved a previous issue which caused the project consuming the library to have to install all peer dependencies, and not just the dependency for the transport you wish to use.
The solution you have highlighted is the correct solution now and I can see our README is outdated. I have opened an issue to resolve and update our documentation so that this is explicit.
Thanks for pointing this out.
Hi @c5haw , you're welcome! These docs seem to be mirrored to the official w3w page, only this version differs slightly in terms of installing peer dependencies. It might be a good idea to keep the one on GitHub up to date and reference it from the official page instead of copying the text. Cheers, Nik
Hi,
This is not working. I'm getting the compiler error "Type 'string' is not assignable to type 'Transport'." Ignoring this, I get a runtime error "this.transport is not a function".
I came across this solution by chance:
This works for me. Could you please explain if I'm missing someting or otherwise update your documentation?
Thanks, Nik