Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
vue-cli - cannot build for development mode

I have a .env file in my project

-public
-src
-.env.development.local

package.json

{
    "name": "my-website",
    "version": "0.1.0",
    "scripts": {
      "serve": "vue-cli-service serve",
      "build": "vue-cli-service build --mode development",
      "lint": "vue-cli-service lint"
    }
  }

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

When I run it after that, it shows error:

my-website@0.1.0 build: `vue-cli-service build --mode development`

When I dig into the logs

13 verbose stack Error: my-website@0.1.0 build: `vue-cli-service build --mode development`
13 verbose stack Exit status 1

After I delete the public folder, it suddenly works

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

There should be more log output which would be helpfull.

Based on your error maybe this helps: https://github.com/vuejs/vue-cli/issues/3420

also try deleting your package-lock file and run npm i again after that it hopefully works

about 4 years ago · Juan Pablo Isaza Report

0

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

vue.config.js

module.exports = {
  outputDir : 'build',
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!