Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
TypeError: Cannot read properties of undefined (reading 'transformFile')

React native fail to install

Version install on windows os

Node js version v17.3.0

react-native-cli: 2.0.1

react-native: 0.66.4

info Reloading app...
BUNDLE ./index.js
error: TypeError: Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile (B:\workA\react\react-native-base\sample\node_modules\metro\src\Bundler.js:48:30) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.transform (B:\workA\react\react-native-base\sample\node_modules\metro\src\lib\transformHelpers.js:101:12) at async processModule (B:\workA\react\react-native-base\sample\node_modules\metro\src\DeltaBundler\traverseDependencies.js:137:18) at async traverseDependenciesForSingleFile (B:\workA\react\react-native-base\sample\node_modules\metro\src\DeltaBundler\traverseDependencies.js:131:3) at async Promise.all (index 0)
at async initialTraverseDependencies (B:\workA\react\react-native-base\sample\node_modules\metro\src\DeltaBundler\traverseDependencies.js:114:3) at async DeltaCalculator._getChangedDependencies (B:\workA\react\react-native-base\sample\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:164:25) at async DeltaCalculator.getDelta (B:\workA\react\react-native-base\sample\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:94:16) at a babel.config.js

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'transform-inline-environment-variables',
      {
        include: ['IS_REACT_NATIVE'],
      },
    ],
  ],
  env: {
    production: {
      plugins: ['react-native-paper/babel'],
    },
  },
};

metro.config.js

module.exports = {   transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),   }, };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!