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

320
Visualizações
babel-plugin-rewire not properly working with React Native project

I am currently creating a small React Native App. For testing, i stated to use babel-plugin-rewire to get access to not-exported functions. Now all my tests are working just fine but if i try to run my App i get the following 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)".

My Project is written in 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"]
  ]
}

I allready searched but never found something that helped, or was related to babel-plugin-rewire.

Allready Thanks for the help.

cheers

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