7

I am using Vue and vite to practice the workflow of the web application with fetching API, following this tutorial. At the end of the yarn dev command, I got the error. I've tried:

  1. Directly clone the project and run the same command, still got the same error.
  2. Search for any issue and solution on Github, but no luck.

How could I resolve this issue? Or I missed anything? Thanks.

Woden
  • 1,054
  • 2
  • 13
  • 26

2 Answers2

1

Had the same issue but only in Chrome. The /@vite/client/ url wasn't loading.

My issue was that Chrome has cached the url with the / in the end however it shouldn't be there. The only way to fix it was to open the Network tab in the dev tools, set a checkmark for "Disable cache", reload the page.

artnikpro
  • 5,487
  • 4
  • 38
  • 40
0

You have for sure an issue with your Node environment setup as the project build and run successfully.

Tested on Node v14.17.5 with npm v6.14.14 or yarn v1.22.5

For troubleshooting :

flydev
  • 4,327
  • 2
  • 31
  • 36