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
import { serialize, deserialize, deserializeUnchecked } from 'borsh';
The error:
Error: 'serialize' is not exported by node_modules/borsh/lib/index.js
is returned. I did try and look inside node_modules/borsh/lib/index.js but there seems to be some kind of custom universal JS module polyfill going on which makes it hard to see if the ES export exists.
The text was updated successfully, but these errors were encountered:
Might have worked around it, looks like borsh may not actually have an ESM export, so used "@rollup/plugin-commonjs"; to allow it to be imported.
Adding native ESM support in the version distributed on npm, would be good, but you can close this if you prefer. Thanks for reading and making borsh! ❤️
Attempting to use a package that does
The error:
is returned. I did try and look inside
node_modules/borsh/lib/index.js
but there seems to be some kind of custom universal JS module polyfill going on which makes it hard to see if the ES export exists.The text was updated successfully, but these errors were encountered: