Errors caused by the "deno task" command
windows
Version: Deno 2.9.0
Today, I downloaded and tried the "deno vite demo".
First, I used the "deno run" command to create the project, but unfortunately, all of them resulted in errors.As shown in the following picture
<img width="960" height="669" alt="Image" src="https://github.com/user-attachments/assets/51d3f92d-6c3c-40c5-be8a-6e91722951d0" />
and so , I used "npm create vite@latest" to create a project,
then entered the project directory and used "deno install" to install the dependencies.
Finally, I used "deno task dev" to start the service.
At this point, the terminal displayed error messages.
After testing, if using "vite" and "npm run dev" can correctly start the service, but using "deno task dev" will result in an error.
The following is the file directory structure
<img width="660" height="312" alt="Image" src="https://github.com/user-attachments/assets/c42f2397-349e-4a2a-88c5-d71634fae78f" />
The following is the terminal error
<img width="1074" height="1088" alt="Image" src="https://github.com/user-attachments/assets/5a7b7d53-ac58-4536-a85b-13424dd00c2f" />
1 条评论