Vue running error: error failed to compile with 1 errors, browser error: cannot get/

Error Failed to compile with 1 errors: Cannot GET /
Share the solution to the problem I encountered for your reference!
Today, while running the Vue project, the following error occurred on the command line:

Browser access returned the following error: no root route was found

Js, and the actual name of the project has changed. In the configuration file, the name is main.html, and in the root directory of the project, it is index.html

Therefore, change main.html to index.html in the configuration file and the project will start successfully.

Read More: