davidmyersdev / vite-plugin-node-polyfills

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

Bug: TypeError: util.inherits is not a function at node_modules/@microsoft/signalr-protocol-msgpack/dist/cjs/MessagePackHubProtocol.js (MessagePackHubProtocol.ts:5:1) #102

Open jatin28 opened 3 months ago

jatin28 commented 3 months ago

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

exrhizo commented 3 months ago

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: