Skip to content

Upgrade 0.55.4 to 0.57 Babel Error on Decorators #22276

@humarkx

Description

@humarkx

/node_modules/react-native/src/navigators/MainNavigator.js: The decorators plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you want to use the legacy decorators semantics, you can set the 'legacy: true' option.

Dev package installed:
"@babel/plugin-proposal-decorators": "^7.1.6",
.babelrc file:

{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": ["@babel/plugin-proposal-decorators", { "legacy": true }]
}

Im lost now, this flag should be solving the problem right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions