Coder Social home page Coder Social logo

Comments (4)

oblador avatar oblador commented on June 2, 2024

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.

OskarEichler avatar OskarEichler commented on June 2, 2024

@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.

oblador avatar oblador commented on June 2, 2024

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.

suhassasuke avatar suhassasuke commented on June 2, 2024

@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)

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.