Comments (3)
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
withreact-native@^0.Y.0
, we should be enforcing that with a runtime check and/orpeerDependencies
.
from metro.
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.
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)
- Cannot find module @callstack/out-of-tree-platforms after run `yarn start --reset-cache` in rn-tester app HOT 1
- How to use it in android tv?
- [Question]: Why is Metro hot update not affected by project size, as always fast HOT 1
- Issues with redux-saga when using unstable_enablePackageExports
- [website] "Fast", "Scalable", and "Integrated" images don't load.
- error: bundling failed: SyntaxError: Unexpected reserved type (any, string, func, Boolean ) HOT 1
- [Question]: Custom logo and welcome message on Metro server launch? HOT 4
- Metro on Windows: Cannot start server in new window because no terminal app was specified HOT 1
- Could not determine the dependecies of task ' :react-native-safe-area-context:generateDebugRFile' HOT 1
- Absolute Paths [global packages] are not working in React Native 0.73.1 HOT 2
- [`metro-transform-plugins`] Function calls prefixed with void together with optional chain (?.) are skipped on production (`dev: false`). HOT 1
- Cannot Conect Metro HOT 2
- web document link not correct HOT 2
- The Metro bundler does not connect to iOS devices HOT 1
- zip
- Is metro will support pnpm in the future? HOT 2
- Could not determine the dependencies of task ' :react-native-gesture-handler:generateDebugRFile' HOT 2
- [0.73.x] Metro crashes because of `__loadBundleAsync` HOT 6
- Unable to resolve module stream HOT 4
- [0.80.4] Metro bundle duplicated code when use unstable_enablePackageExports and unstable_enableSymlinks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metro.