buffer icon indicating copy to clipboard operation
buffer copied to clipboard

writeBigUint64BE isn't defined, but writeBigUInt64BE is

Open mattiaferrari02 opened this issue 2 years ago • 1 comments

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 avatar Aug 23 '22 16:08 mattiaferrari02

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

mattiaferrari02 avatar Aug 24 '22 09:08 mattiaferrari02