GithubHelp home page GithubHelp logo

Comments (3)

robhogan avatar robhogan commented on April 28, 2024 2

Hi @krisisav

Upgraded @react-native/metro-config dependency to latest version: 0.73.2

You don't mention your React Native version but this looks like the problem - the config you're referring to is new, and not yet available in the version of Metro used by any stable release of react-native. Apologies for the confusion. Please use a version with a minor matching whatever version of react-native you're using (e.g., if you're on react-native 0.72.x, use @react-native/metro-config@^0.72.0), or let us know if you are on a 0.73 RC.

CC @huntie for process follow-ups next half:

  • These packages shouldn't be tagged latest and shouldn't have stable releases before 0.73 final (12k downloads of @react-native/metro-config 0.74.0 must be causing issues for folks somewhere).
  • More generally, if we don't want folks to use @react-native/foo@^0.X.0 with react-native@^0.Y.0, we should be enforcing that with a runtime check and/or peerDependencies.

from metro.

krisisav avatar krisisav commented on April 28, 2024 1

Thank you for the fast response @robhogan
Indeed, we are using react-native v0.72.7
Seems good to note here though: before our latest dependency upgrades, we used to have react-native v0.72.5 in combination with @react-native/metro-config v0.73.2 (so no major updates were applied)

from metro.

robhogan avatar robhogan commented on April 28, 2024

We used to have react-native v0.72.5 in combination with @react-native/metro-config v0.73.2 (so no major updates were applied)

Indeed, YMMV when using non-matching versions - 0.73.x isn't guaranteed to be compatible with 0.72.y, but might happen to be compatible for some patch versions, particularly early ones close to the cut. You can think of the minor bump as "dropping support" for the previous release line, after which we're free to make changes that actually break compatibility with it.

In general with React Native you should ensure that any @react-native/* dependencies are aligned with react-native in their minor (middle) version - that's the context in which they're developed and tested.

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.