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

213
Vistas
Cannot read properties of undefined (reading 'isAbsolute')

I was editing this program yesterday and it worked fine the whole time. The program is created using parcel, today when started up the script and the dev server was broken. This is the error i recived:

*Uncaught TypeError: Cannot read properties of undefined (reading 'isAbsolute')
    at parcelRequire.../node_modules/tar/lib/strip-absolute-path.js.path (strip-absolute-path.js:2:9)
    at newRequire (main.fb6bbcaf.js:47:24)
    at localRequire (main.fb6bbcaf.js:53:14)
    at parcelRequire.../node_modules/tar/lib/write-entry.js.minipass (write-entry.js:39:27)
    at newRequire (main.fb6bbcaf.js:47:24)
    at localRequire (main.fb6bbcaf.js:53:14)
    at parcelRequire.../node_modules/tar/lib/pack.js.minipass (pack.js:28:20)
    at newRequire (main.fb6bbcaf.js:47:24)
    at localRequire (main.fb6bbcaf.js:53:14)
    at parcelRequire.../node_modules/tar/lib/create.js../high-level-opt.js (create.js:6:14)*

I cant seem to find anyone else with the same error. This is strip-aboslute-path.js 2:9 where the error happens:

//unix absolute paths are also absolute on win32, so we use this for both
const { isAbsolute, parse } = require('path').win32

I’ve tried: npm install, npm install tar, npm i -g npm and changing the names of folders in the Path to the src file that included "å, ä, ö",

Would love get this running again, any suggestions on what to try next?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Solved: This probably happened due to me trying to access a variable named x and vscode auto adding "import {x} from tar" at the top of the js file. When removing the import the program was working again.

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