search

Home  >  Q&A  >  body text

Vue, vite: GET http://localhost:3000/@vite/client The title of net::ERR_ABORTED 404 (Not Found) is rewritten to: Vue, vite: on http://localhost:3000/@vite/client A net::ERR_ABORTED 404 (not found) error occurred in the initiated GET request.

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:

  1. Clone the project directly and run the same command, still encountering the same error.
  2. Searched Github for any issues and solutions but no luck.

How can I solve this problem? Or am I missing something? Thanks.

P粉710478990P粉710478990459 days ago1348

reply all(2)I'll reply

  • P粉573809727

    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.

    reply
    0
  • P粉111227898

    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:

    reply
    0
  • Cancelreply