Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda