GithubHelp home page GithubHelp logo

error Cannot read properties of undefined (reading 'transformFile'). TypeError: Cannot read properties of undefined (reading 'transformFile') about metro HOT 2 CLOSED

rahul-s-1110 avatar rahul-s-1110 commented on April 28, 2024
error Cannot read properties of undefined (reading 'transformFile'). TypeError: Cannot read properties of undefined (reading 'transformFile')

from metro.

Comments (2)

robhogan avatar robhogan commented on April 28, 2024 3

Hi @rahul-s-1110,

See #1051 for some pointers on how to pass NODE_OPTIONS through Xcode and/or Gradle.

It's also possible you have multiple versions of Node.js installed (with NVM maybe?) and the Xcode environment is picking up a different one from your usual shell - you can try uninstalling anything Node 17 and above to prevent that. You shouldn't see E_OSSL_EVP_UNSUPPORTED if you're exclusively running Node 16.x.

Finally, you could use something like patch-package to apply this one-line fix to metro-cache, which is the cause of the error: https://github.com/facebook/metro/pull/752/files.

Beyond that, I'm afraid we can't offer support for versions as old as the one you're running - we release patches for the last two stable React Native releases, 0.71 and up. Stack Overflow might be a better place to troubleshoot older versions.

from metro.

rahul-s-1110 avatar rahul-s-1110 commented on April 28, 2024 1

Thanks @robhogan .
It's finally working with changing in metro-cache.

I understand that my project is using an older version of React Native, and I appreciate your recommendation. This project has been a long-standing legacy application, and I am in the process of planning and preparing for an upgrade to a more recent React Native version.

from metro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.