You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can someone please tell us how to fix? We are blocked by this issue. It works with with npm run dev which uses node to serve (and has Buffer). but when doing npm run build for a static sveltekit build Buffer is undefined in the browser.
Is there a browser version of torus-node? The specific module we are using is "@toruslabs/openlogin": "^1.7.1",
I need a way to alias Buffer for the browser.
Not sure which module requires this but its probably crypto related.
Problem is using Torus node library.
Here is a repo: https://github.com/ralyodio/torus-bufer
...you will see error.
npm run dev
works fine since node handles requests. Its the browser only environment that is the issue.The polyfill in
svelte.config.js
appears to not work: https://github.com/ralyodio/torus-bufer/blob/master/svelte.config.jsThe text was updated successfully, but these errors were encountered: