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

187
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'get') al intentar configurar dotenv-webpack

vista: 3.2.22
paquete web: 5.68.0
dotenv-webpack: 6.0.4 (pero también probé 7.1.0, que actualmente es la última)

Mi vue.config.js se ve así:

 const Dotenv = require("dotenv-webpack") module.exports = { // ... configureWebpack: { performance: { hints: false, }, output: { filename: "main.js", }, plugins: [ new Dotenv(), ], }, chainWebpack: config => { // ... }, }

Cuando ejecuto yarn build obtengo TypeError: Cannot read properties of undefined (reading 'get') .

Este uso de Dotenv se encuentra en muchas respuestas en SO y en otros lugares, pero por alguna razón no me funciona. ¿Qué podría ser la causa?

NOTA: No tengo que usar necesariamente dotenv-webpack . Estoy abierto a alternativas siempre que pueda usar mi archivo .env en Vue.

about 4 years ago · Juan Pablo Isaza
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!