davidmyersdev/vite-plugin-node-polyfills

Uncaught error: The "original" argument must be of type Function

gluharry opened this issue · 1 comments

I am getting this error when using the plugin in a 'sanity' vite config:
// sanity.config.ts vite: (prev: any) => ({ ...prev, plugins: [...prev.plugins, nodePolyfills()], }),

Heres the full error:
Screenshot 2023-09-09 at 15 28 07

Hey there, @harryyaprakov. I'm not familiar with Sanity. Can you please provide a minimal example project that gives this error on StackBlitz or CodeSandbox?