Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

318
Vistas
VUE_APP_PUBLIC_PATH is not defined

I have a vue.js project in Typescript, I started

npm run serve

I kept getting

>98% after emitting CopyPlugin

 ERROR  Failed to compile with 2 errors                                          2:36:43 PM

 error  

Template execution failed: ReferenceError: VUE_APP_PUBLIC_PATH is not defined

  ReferenceError: VUE_APP_PUBLIC_PATH is not defined
  
  - index.html:4 eval
    [.]/[html-webpack-plugin]/lib/loader.js!./public/index.html:4:11
  
  - index.html:13 module.exports
    [.]/[html-webpack-plugin]/lib/loader.js!./public/index.html:13:3
  
  - index.js:284 
    [trace]/[html-webpack-plugin]/index.js:284:18
  
  - runMicrotasks
  
  - task_queues.js:95 processTicksAndRejections
    internal/process/task_queues.js:95:5
  

No type errors found
Version: typescript 4.1.6
Time: 3996ms

enter image description here

.env

line 5: I have this

VUE_APP_PUBLIC_PATH=./

Does Vue.js compiler look for that flag in another file that I should add ? Am I effected by some kind of cache issue ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda