Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: vite.new/react starter template #48

Open
raghavm23 opened this issue Dec 20, 2024 · 0 comments
Open

Error: vite.new/react starter template #48

raghavm23 opened this issue Dec 20, 2024 · 0 comments

Comments

@raghavm23
Copy link

Unable to spin up a new vite react-js project using the starter template.
Fails on auto-launch while executing npm run dev

failed to load config from /home/projects/vitejs-vite-1wvvebnm/vite.config.js
error when starting dev server:
Error: Build failed with 3 errors:
(define name):1:0: ERROR: Expected identifier but found "import"
(define name):1:0: ERROR: Expected identifier but found "import"
(define name):1:0: ERROR: Expected identifier but found "import"
    at failureErrorWithLog (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:1466:15)
    at eval (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:935:25)
    at runOnEndCallbacks (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:1306:45)
    at buildResponseToResult (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:933:7)
    at eval (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:960:16)
    at responseCallbacks.<computed> (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:612:9)
    at handleIncomingPacket (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:667:12)
    at Socket.readFromStdout (/home/projects/vitejs-vite-1wvvebnm/node_modules/esbuild/lib/main.js:590:7)
    at Socket.emit (node:events:30:10899)
    at addChunk (node:internal/streams/readable:225:3685)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant