question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

When I run vite command, it throws an error and exits.

Reproduction

  1. Create a project using npm init @vitejs/app
  2. Run npm i
  3. Run npm run dev or any run script use vite(build, serve)

System Info

  • vite version: 2.0.0-beta.66
  • Operating System: Windows 10 x64
  • Node version: 15.8.0
  • Package manager (npm/yarn/pnpm) and version: npm v7.5.3

Logs (Optional if provided reproduction)

2021-02-09T11_51_25_236Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
XiaoPangxie732commented, Feb 9, 2021

Hmm… After testing, I found the reason why esbuild could not be installed was that I used the Taobao mirror. Then I switched to the official registry, the project can build successfully.

0reactions
yyx990803commented, Feb 9, 2021

Well, you didn’t provide that information in the original issue - that’s why it was closed.

This seems like an esbuild install failure with your system setup - try if you can install and run esbuild individually, if you get the same error, open an issue in esbuild’s repo instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Vite
Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and...
Read more >
Why vite.js doesn't work when I use npm run dev
I create a react app with Vite, I go to the directory with cd xxxxx , I run npm install , then I...
Read more >
Unable to the run vue app with latest vite version 2.9.0 and ...
When renameDir runs it hits this error and can't rename to a dirname that already exists, it attempts to retry but isn't retrying...
Read more >
vite - npm
A dev server that serves your source files over native ES modules, with rich built-in features and astonishingly fast Hot Module Replacement ( ......
Read more >
Cannot run Vitest when using pnpm and vite is not declared in ...
Run Vitest for iconify/packages/api-redundancy using Run 'All Tests' from the context menu on the folder. The test run fails with MISSING DEP Can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found