You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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 :/
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.
Old Version
0.73.6
New Version
0.74.1
Description
After upgrading from 0.73.6 to 0.74.0 / 0.74.1 we are seeing this error:
We didn't change anything in our declarations - here is the babel section of our package.json:
Everything is working just fine on 0.73.6
Steps to reproduce
Upgrade to 0.74.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: