Closed KholdStare closed 11 months ago
Looks like this might have been fixed: https://github.com/rollup/rollup/issues/4699#issuecomment-1770565073
Nope still seeing it. Updating vite in stackblitz didn't help either. Seems like it's similar to this issue: https://github.com/davidmyersdev/vite-plugin-node-polyfills/pull/45
This looks like it fixes the issue: https://github.com/davidmyersdev/vite-plugin-node-polyfills/pull/53
Released in v0.16.0
.
When using this plugin alongside some react libraries, running a
vite build
results in a spew of errors like:There are a bunch of issues filed in several libraries, but I think something is happening when using both this plugin and react, when dependencies use the new
use client
directive. See this issue in the rollup project:https://github.com/rollup/rollup/issues/4699
I have created a small stackblitz environment where running
npm run build
will result in these warnings:https://stackblitz.com/edit/vitejs-vite-pcpqdr?file=vite.config.ts
The key thing to note is that just removing this plugin fixes all the warnings. So there is some funky interaction.