ben-ryder / localful

Build single-user local-first web apps with a focus on simplicity, interoperability and longevity.
GNU Affero General Public License v3.0
1 stars 0 forks source link

"Uncaught TypeError: Writable is undefined" when attempting to use toolkit #1

Open ben-ryder opened 1 year ago

ben-ryder commented 1 year ago

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: