This is an issue with axios and it's dependencies, namely that the follow-redirects package used by axios has a dependency on the stream library.
There's some weird toolchain issues with axios v1.1.3 that means some nodejs libraries are not polyfilled (I noticed this in a Vite project with rollup for example).
The solution is to pin axios to v1.1.2 until another release fixes this, which I have now done in @ben-ryder/lfb-toolkit@0.4.1
Related issues that led me to this fix, and explain it much better than I can:
This is an issue with axios and it's dependencies, namely that the
follow-redirects
package used byaxios
has a dependency on thestream
library. There's some weird toolchain issues with axios v1.1.3 that means some nodejs libraries are not polyfilled (I noticed this in a Vite project with rollup for example). The solution is to pin axios to v1.1.2 until another release fixes this, which I have now done in@ben-ryder/lfb-toolkit@0.4.1
Related issues that led me to this fix, and explain it much better than I can: