-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to React Native 0.74: Class private methods are not enabled #286
Comments
You are expected to use the |
@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 |
@OskarEichler check your babel.config.js or babel.rc file. I was also facing the same issue. module.exports = { |
Can we consider this solved, @OskarEichler? |
I suppose so, haven't had time to dive in yet but quickly tested with the '@react-native/babel-preset' and throwing some other error now so I guess we will be able to make it work. It's interesting that it was working up until the previous release with our existing config, and now I guess we will need to split out our babelrc to a native and web file to use different presets. |
it works |
Works for some, but not others. |
This worked, but now the app is crashing at startup. |
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: