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

Running Start Command Failed #1673

Open
1 task done
prabhjot-2 opened this issue Dec 20, 2024 · 0 comments
Open
1 task done

Running Start Command Failed #1673

prabhjot-2 opened this issue Dec 20, 2024 · 0 comments

Comments

@prabhjot-2
Copy link

Describe the bug

npm install && npm run dev

added 256 packages in 36s

106 packages are looking for funding
run npm fund for details

[email protected] dev
vite

✘ [ERROR] Expected identifier but found "import"

(define name):1:0:
  1 │ import.meta.dirname
    ╵ ~~~~~~

✘ [ERROR] Expected identifier but found "import"

(define name):1:0:
  1 │ import.meta.filename
    ╵ ~~~~~~

✘ [ERROR] Expected identifier but found "import"

(define name):1:0:
  1 │ import.meta.url
    ╵ ~~~~~~

failed to load config from /home/projects/vitejs-vite-p8bq7ek8/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-p8bq7ek8/node_modules/esbuild/lib/main.js:1466:15)
at eval (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:935:25)
at runOnEndCallbacks (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:1306:45)
at buildResponseToResult (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:933:7)
at eval (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:960:16)
at responseCallbacks. (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:612:9)
at handleIncomingPacket (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:667:12)
at Socket.readFromStdout (/home/projects/vitejs-vite-p8bq7ek8/node_modules/esbuild/lib/main.js:590:7)
at Socket.emit (node:events:30:10899)
at addChunk (node:internal/streams/readable:225:3685)

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-p8bq7ek8?file=README.md

Steps to reproduce

add a new project
automatically this error came

Expected behavior

the project should be run when create a new project but showing running commmand failed

Parity with Local

Screenshots

Screenshot 2024-12-20 165237 image

Platform

Browser name  = Chrome
Full version  = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
performance.memory = {
  "totalJSHeapSize": 66141502,
  "usedJSHeapSize": 62905678,
  "jsHeapSizeLimit": 4294705152
}
Hash = c8c182a3

Additional context

No response

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