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

318
Vistas
babel-plugin-rewire no funciona correctamente con el proyecto React Native

Actualmente estoy creando una pequeña aplicación React Native. Para las pruebas, declaré usar babel-plugin-rewire para obtener acceso a las funciones no exportadas. Ahora todas mis pruebas funcionan bien, pero si trato de ejecutar mi aplicación, aparece el siguiente error:

 node_modules\@react-navigation\native\src\NavigationContainer.tsx: C:\node_modules\@react-navigation\native\src\NavigationContainer.tsx: Property typeName of TSTypeReference expected node to be of a type ["TSEntityName"] but instead got "CallExpression" transform[stderr]: The exported identifier "_DefaultExportValue" is not declared in Babel's scope tracker transform[stderr]: as a JavaScript value binding, and "@babel/plugin-transform-typescript" transform[stderr]: never encountered it as a TypeScript type declaration. transform[stderr]: It will be treated as a JavaScript value. transform[stderr]: transform[stderr]: This problem is likely caused by another plugin injecting transform[stderr]: "_DefaultExportValue" without registering it in the scope tracker. If you are the author transform[stderr]: The exported identifier "_DefaultExportValue" is not declared in Babel's scope tracker transform[stderr]: as a JavaScript value binding, and "@babel/plugin-transform-typescript" transform[stderr]: never encountered it as a TypeScript type declaration. transform[stderr]: It will be treated as a JavaScript value. transform[stderr]: transform[stderr]: This problem is likely caused by another plugin injecting transform[stderr]: "_DefaultExportValue" without registering it in the scope tracker. If you are the author transform[stderr]: of that plugin, please use "scope.registerDeclaration(declarationPath)".

Mi proyecto está escrito en JS.

.babelrc:

 { "plugins": [ ["@babel/plugin-transform-flow-strip-types"], [ "module-resolver", { "root": ["./src/main"], "alias": { "src": "./src/main", "resources": "./src/main/resources" } } ], ["transform-inline-environment-variables"], ["babel-plugin-rewire"] ] }

Ya busqué pero nunca encontré algo que ayudara o estuviera relacionado con babel-plugin-rewire.

Ya Gracias por la ayuda.

salud

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