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

234
Visualizações
Maximum Call Stack Size exceeded and ENOENT error while using context

I get this error whenever I try to use React context,provider or useContext, any of them causes this

On App:

Maximum call stack exceeded

On terminal:

Error: ENOENT: no such file or directory, open '/home/lck/Desktop/workdir/MathApp/mathapp/http:/192.168.0.4:8081/index.bundle?platform=android&dev=true&minify=false&app=com.mathapp&modulesOnly=false&runModule=true'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at getCodeFrame (/home/lck/Desktop/workdir/MathApp/mathapp/node_modules/metro/src/Server.js:919:18)
    at Server._symbolicate (/home/lck/Desktop/workdir/MathApp/mathapp/node_modules/metro/src/Server.js:992:22)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Server._processRequest (/home/lck/Desktop/workdir/MathApp/mathapp/node_modules/metro/src/Server.js:403:7) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/lck/Desktop/workdir/MathApp/mathapp/http:/192.168.0.4:8081/index.bundle?platform=android&dev=true&minify=false&app=com.mathapp&modulesOnly=false&runModule=true'
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Path to context is wrong.

Basically I import ContextFile.js to index.js, and from index.js access to many things. index.js was importing Context from itself, and not from ContextFile.

At fist when I corrected the files, it didn't work, I don't know while, I even restarted with npx react-native start

Big Thanks to @Bergi, what he said helped me a lot to solve it. Sadly I don't know how to tag or message him.

I hope this helps someone else...

image showing how i structure my files

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