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

136
Visualizações
Accessing non-existent property 'padLevels' of module exports inside circular dependency

I just > npm i -g phonegap@9.0.0 and > phonegap --version.
It says not only 9.0.0 but also:

(node:18392) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)

when I > node --trace-warnings ..., I got this:

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'C:\Users\twori\...'
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:725:27)[39m
[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)[39m
[90m    at internal/main/run_main_module.js:17:47[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: []
}

I did only install and check version. Why does the phonegap module throw this error?
My teacher and other students go well with this, but only I can't do nothing.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

After I updated my node from version 12 to version 14, I also faced the same warning. In my case, this warning was coming due to an older version of surge. after updating surge, the warning was gone. If you have surge installed in your system then update it to the latest version. You can run this command to update surge to the latest version:

  sudo npm i -g surge
over 4 years ago · Santiago Trujillo Relatório

0

That the node version was too high. Previously, the 14+ version used by the latest was used. After switching back to the 12 version, there would be no such problem.

Mac command

sudo n 12.0.0
over 4 years ago · Santiago Trujillo Relatório

0

Solved Root Cause

exports inside circular dependency

👆 This phrase gave hint to solve the same issue for me, it seems that newer NodeJS versions no longer allows circular dependencies.

Eg - There are two files - FileA.js, FileB.js

Where FileA.js has

const FileB = require("FileB");

and FileB.js has

const FileA = require("FileA");

After removing one of these circular dependencies by modifying either FileA.js or FileB.js, it was solved!

over 4 years ago · Santiago Trujillo 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