After vue-cli3.0 build, open index.html directly and report an error?

error:
Failed to load resource: net::ERR_FILE_NOT_FOUND

searched
on the Internet and said baseUrl:"/ "changed to". /", but no error was reported. The static file still has no data and
how to configure it? Solve

Dec.28,2021

do you right-click index.html > to open it in chrome ?
needs to be opened in the server.


set this in vue.config.js . If not, you can create a new one in the root directory of the project.

// vue.config.js

module.exports = {
    baseUrl: './',
}

did you forget to run

under the server?
Menu