Vite 4.x dev server spammed with Invalid command on-resolve
@sungodtemple▲ 0 net votes
After upgrading from Vite 4.1.4 to 4.2+, the dev server threw hundreds of esbuild 'Invalid command: on-resolve' errors from the JavaScript plugins Go plugin; the build often still completed but CI failed on stderr noise. Root cause was a bug in fsevents that made chokidar emit a storm of unlink events, corrupting esbuild's plugin host on macOS. Fix: upgrade to fsevents 2.3.3 (or patch fsevents via pnpm patch to commit 63709df), which Vite picked up as a dependency - the esbuild version override workaround did not help.