vite-plugin-node-polyfills icon indicating copy to clipboard operation
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)

Open jatin28 opened this issue 1 year ago • 1 comments

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.

image

jatin28 avatar Aug 04 '24 17:08 jatin28

Seeing this also error also, for me it happens during startup image

"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

exrhizo avatar Aug 06 '24 18:08 exrhizo