I am trying to create a react app with vite and I am getting this error:
Error: Failed to scan for dependencies from entries:
C:/Users/User/Desktop/responsive-app/index.html The path to my project, I am using windows for this spacific project
The service is no longer running at C:\Users\User\Desktop\responsive-app\node_modules\esbuild\lib\main.js:1083:25 at sendRequest (C:\Users\User\Desktop\responsive-app\node_modules\esbuild\lib\main.js:699:14) at buildOrContextContinue (C:\Users\User\Desktop\responsive-app\node_modules\esbuild\lib\main.js:1081:5) at C:\Users\User\Desktop\responsive-app\node_modules\esbuild\lib\main.js:993:11 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have tried different approaches like deleting node_modules and reinstalling all packages, installing esbuild manually... but the app is not statring
To resolve the issue do this npm i -g vite these error is because vite is not installed globally on your machine.