I am using Vue and vite to practice the workflow of a web application that uses APIs to get data, referring to this tutorial. At the end of executing the yarn dev
command, I encountered an error. I have tried before:
How can I solve this problem? Or am I missing something? Thanks.
P粉5738097272023-11-07 11:11:50
Encountered the same problem, but only in Chrome. The URL /@vite/client/
cannot be loaded.
My problem is that Chrome caches the URL, but it has a /
at the end, which there shouldn't be. The only solution is to open the network tab in the dev tools, tick "Disable cache" and reload the page.
P粉1112278982023-11-07 09:50:15
There must be something wrong with your Node environment settings, because the project built and ran successfully.
Tested on Node v14.17.5
, using npm v6.14.14
or yarn v1.22.5
If troubleshooting is required: