Closed MHHukiewitz closed 3 months ago
While the SDK works as intended with React and Node.js projects, running it in Vite projects requires an additional troubleshooting step.
Vite recognizes the Node.js dependencies like buffer or events as externalized and does not seem to load bundled Node.js polyfills.
buffer
events
For an example repo where this happens, see: https://github.com/hoh/test-aleph-ts-sdk
A troubleshooting guide how to fix this for your own Vite project has been published: https://docs.aleph.im/libraries/typescript-sdk/troubleshooting/
Has been fixed in v1.0.0
While the SDK works as intended with React and Node.js projects, running it in Vite projects requires an additional troubleshooting step.
Vite recognizes the Node.js dependencies like
buffer
orevents
as externalized and does not seem to load bundled Node.js polyfills.Reproduction
For an example repo where this happens, see: https://github.com/hoh/test-aleph-ts-sdk
Troubleshooting
A troubleshooting guide how to fix this for your own Vite project has been published: https://docs.aleph.im/libraries/typescript-sdk/troubleshooting/