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

The typescript project and typescript template cannot be started #2389

Closed
hairyf opened this issue Mar 5, 2021 · 4 comments
Closed

The typescript project and typescript template cannot be started #2389

hairyf opened this issue Mar 5, 2021 · 4 comments
Labels
cannot reproduce The bug cannot be reproduced

Comments

@hairyf
Copy link

hairyf commented Mar 5, 2021

Describe the bug
Build fails after following the instructions for create-app, using the vue-ts template.

To Reproduce
Steps to reproduce the behavior:

Run npm init @vitejs/app my-vue-app -- --template vue-ts
cd my-vue-app
npm install
npm run dev

> [email protected] dev
> vite

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn F:\projects\test\my-vue-app\node_modules\esbuild\esbuild.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn F:\\projects\\test\\my-vue-app\\node_modules\\esbuild\\esbuild.exe',
  path: 'F:\\projects\\test\\my-vue-app\\node_modules\\esbuild\\esbuild.exe',
  spawnargs: [ '--service=0.8.55', '--ping' ]
}

Info (please complete the following information):
Version: 2.0.5 (user setup)
Node.js: 14.15.4
Typescript: 4.1.3
Vue: 3.0.5

@hairyf
Copy link
Author

hairyf commented Mar 5, 2021

The problem was solved after I rolled back esbuild to 0.8.54

@hairyf hairyf closed this as completed Mar 5, 2021
@hairyf hairyf reopened this Mar 5, 2021
@underfin
Copy link
Member

underfin commented Mar 5, 2021

As you say, it is a issue of esbuild. Can you open a issue at esbuild repo?

@underfin underfin added bug: upstream Bug in a dependency of Vite and removed pending triage labels Mar 5, 2021
@hairyf
Copy link
Author

hairyf commented Mar 5, 2021

Ok i will do it

evanw/esbuild#921

@hairyf hairyf closed this as completed Mar 5, 2021
@hairyf hairyf reopened this Mar 5, 2021
@nihalgonsalves nihalgonsalves added cannot reproduce The bug cannot be reproduced and removed bug: upstream Bug in a dependency of Vite labels Apr 24, 2021
@nihalgonsalves
Copy link
Member

Hi @TuiMao233, I'm closing this since this doesn't seem to be an issue anymore. npm init @vitejs/app my-vue-app and selecting vue and ts should work. Feel free to comment if you still have a problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cannot reproduce The bug cannot be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants