Comments (4)
You are expected to use the @react-native/babel-preset
preset on react native projects. Either add this one or add @babel/plugin-transform-private-methods
as the error suggests.
from react-native-releases.
@oblador I think that @babel/plugin-transform-private-methods is already part of @babel/preset-env. Everything was working prior to the upgrade. Setting all of the plugins to loose mode or configuring them as overrides unfortunately also doesn't solve it.
Based on the upvotes here it seems like other people are facing the same issue :/
from react-native-releases.
It's possible this is related to flow stripping etc too. Could you verify that this is still an issue using the proper @react-native/babel-preset
preset? If not, I'd argue that you should either adjust your config or open an issue in the babel monorepo.
from react-native-releases.
@OskarEichler check your babel.config.js or babel.rc file. I was also facing the same issue.
module.exports = {
presets: ['module:@react-native/babel-preset'], <--- this is what you need to resolve your error
plugins: [
'react-native-reanimated/plugin',
],
};
from react-native-releases.
Related Issues (20)
- [0.74] 'selection' prop does not work on Android on TextInput component initialization
- Redefinition of module ReactCommon when upgrading to 0.74 HOT 4
- 'RCTAppDelegate.h' file not found HOT 3
- [0.74.1] Cherry-pick Hermes atob padding fix
- [0.74] Pick iOS privacy manifest path fix
- [0.74] Cherry-pick fix for selectionColor on iOS
- Intl library functions become undefined on iOS in React Native v0.74.x with Hermes HOT 2
- [0.74] Fix for Unhandled SoftException - `com.facebook.react.bridge.ReactNoCrashSoftException: Tried to access onWindowFocusChange`
- Unable to upgrade react native version 0.73.6 To 0.74.1 getting issue with ios
- [0.74] Cherry-pick "iOS: Fixes textinput onscroll event payload"
- CodeGen behaving strangely on upgraded project
- [0.74] Fix bridgeless triggering reloads twice from `BridgelessDevSupportManager`
- Increase iOS script portability
- [0.74] Fix Privacy Manifest generator when it does not contain a NSPrivacyAccessedAPITypes key
- [0.73] Fix Privacy Manifest generator when it does not contain a `NSPrivacyAccessedAPITypes` key
- [0.72] Fix Privacy Manifest generator when it does not contain a `NSPrivacyAccessedAPITypes` key
- [0.74.2] reduce unnecessary warnings for users running `npx react-native` commands
- [0.74] Remove invalidate observer instead of re-adding observer in DeviceInfo module
- [0.73] Remove invalidate observer instead of re-adding observer in DeviceInfo module
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 react-native-releases.