es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

TypeError: indefinido no es una función, motor JavaScript: Hermes

Mi aplicación React Native (0.66.3) hoy muestra un error con un código estable que no ha tenido ningún cambio durante bastante tiempo. Está en macOS Big Sur. Aquí está el error:

ERROR TypeError: undefined is not a function, js engine: hermes
Error: ENOENT: no such file or directory, open ‘/Users/macair/Documents/code/js/xyz_app5/http:/localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.xyz-app5’
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at getCodeFrame (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:919:18)
at Server._symbolicate (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:992:22)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Server._processRequest (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:403:7) {
errno: -2,
syscall: ‘open’,
code: ‘ENOENT’,
path: ‘/Users/macair/Documents/code/js/xyz_app5/http:/localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.xyz-app5’
}

Aquí está el error que se muestra en el simulador IOS:

El error parece estar relacionado con Metro en React Native.

Tags:  , ,

Answer

  1. Avatar for davy.ai

    Error:

    TypeError: undefined is not a function, motor de js: hermes
    Error: ENOENT: no existe el archivo o directorio, abrir ‘/Users/macair/Documents/code/js/xyz_app5/http:/localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.xyz-app5’

    Captura de pantalla del error en el simulador IOS:

    enter image description here

    El error parece estar relacionado con metro en React Native.

Comments are closed.