Hy guys, I’ve created a vue3 project using “vue create ‘my-project'”, using the default settings, and it´s ok, if I serve it, it works perfectly. When I build it, it gets done sucessuflly but when I try to open the index.html on the broWser nothing happens and I get these errors consoled:
“Failed to load resource: net::ERR_FILE_NOT_FOUNDUnderstand this error
app.4a6fa159.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUNDUnderstand this error
app.2cf79ad6.css:1
Failed to load resource: net::ERR_FILE_NOT_FOUNDUnderstand this error
/C:/favicon.ico:1
Failed to load resource: net::ERR_FILE_NOT_FOUND”`.
It makes no sense since I just created the project and built it, without any modification, so it’s supposed to work.
I’m using
- node v20.14.0;
- npm 6.14.18; and
- @vue/cli 5.0.8.
vue create
is the wrong obsolete CLI that you should NOT be using, unfortunately.
Following the current official docs, you should be using
npm create vue@latest