davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

readBigUInt64BE function not being implemented? #20

Closed EugeneZhou1018 closed 11 months ago

EugeneZhou1018 commented 1 year ago

Hi, im using the combination of vue and vuetify, with Vite 4.3.9, I'm simply just import buffer function with nodePolyfills define inside of the export default part of my vite.config.ts everything works like a charm except the readBigUInt64BE being report as "not a function", so I quickly search through the code, and found out there's no match of readBigUInt64BE inside of this node modules, is it not being implemented yet or I did some wrong with my code?
thanks!

davidmyersdev commented 1 year ago

It looks like that was added in a version of the buffer package that is not included in node-stdlib-browser. I'll see what I can do about pinning the updated version on my end, but you should be able to override that dependency in your package.json file.

pcfreak30 commented 1 year ago

I just hit this as well.

davidmyersdev commented 11 months ago

This has been fixed in v0.10.0.