vite-plugin-node-polyfills
vite-plugin-node-polyfills copied to clipboard
Bug: TypeError: util.inherits is not a function at node_modules/@microsoft/signalr-protocol-msgpack/dist/cjs/MessagePackHubProtocol.js (MessagePackHubProtocol.ts:5:1)
Summary
Hi There,
The polyfill doesn't seem to be working for the above mentioned package. Also attaching the screenshot of the error from console for more info.
Seeing this also error also, for me it happens during startup
"vite": "5.3.1",
"apache-arrow": "^11.0.0",
"vite-plugin-node-polyfills": "^0.22.0"
vite.config.js
nodePolyfills({
include: ['stream']
}),
Although not maintained, so much I am finding these run for me:
- https://gist.github.com/FbN/0e651105937c8000f10fefdf9ec9af3d
- https://stackoverflow.com/questions/72773373/buffer-is-not-exported-by-vite-browser-externalbuffer