Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writeBigUint64BE isn't defined, but writeBigUInt64BE is #318

Open
mattiaferrari02 opened this issue Aug 23, 2022 · 1 comment
Open

writeBigUint64BE isn't defined, but writeBigUInt64BE is #318

mattiaferrari02 opened this issue Aug 23, 2022 · 1 comment

Comments

@mattiaferrari02
Copy link

mattiaferrari02 commented Aug 23, 2022

One of the node modules that i'm importing uses this method, I'm currently developing in a browser environment, I used a polyfill to access buffer (https://www.npmjs.com/package/node-polyfill-webpack-plugin) that loads this buffer at the latest version.
From the lib that i have to use an error is being throwed saying that Buffer.prototype.writeBigUint64BE isn't defined

@mattiaferrari02 mattiaferrari02 changed the title Can I use "writeBigInt64BE" ?? writeBigUint64BE isn't defined, but writeBigUInt64BE is Aug 24, 2022
@mattiaferrari02
Copy link
Author

Oh ok I found out what's the problem here.
I created a plain node script to test it:
Screenshot 2022-08-24 at 11 40 10
Screenshot 2022-08-24 at 11 40 36

This thing right here doesn't work with this library.
If i do the same thing from browser i obtain
Screenshot 2022-08-24 at 11 42 47
Screenshot 2022-08-24 at 11 42 59

Thanks, I almost lost my mind on this stupid thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant