I am trying to use Vite for a web development project on my Windows machine. However, I keep getting the error message: Error: Cannot find module 'fsevents' [plugin:vite:import-analysis] Failed to resolve import "fsevents" from "node_modules.vite\deps\chunk-7EWWWNQA.js?v=554e11ec". Does the file exist?
23275| async function loadFsEvents() { 23276| try { 23277| ({ default: fsEvents } = await import("fsevents")); | ^ 23278| } catch (error2) { 23279| fsEventsImportError = error2;
I have tried uninstalling the fsevents package and deleting node modules several times, but the error persists. I also tried running the command npm audit fix --force, but it did not help either.
How can I resolve this error and use Vite on my Windows machine?