Skip to content
Advertisement

vue-cli – cannot build for development mode

I have a .env file in my project

JavaScript

package.json

JavaScript

When I run npm run build for the first time, it works.

When I run it after that, it shows error:

JavaScript

When I dig into the logs

JavaScript

After I delete the public folder, it suddenly works

Advertisement

Answer

After I update the outputDir from public to build, it works.

vue.config.js

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement