I am getting the following Babel error
The decorators Plugin when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean. ..../node_modules/@babel/plugin-proposal-decorators/lib/index.js$inerhits
This is my babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'react-native-reanimated/plugin',
[
"@babel/plugin-proposal-decorators",
{
"legacy": true,
"decoratorsBeforeExport": false // I tried this with true as well -> no luck either
}
]
]
};
This are the versions I am using
....
"dependencies": {
"react": "17.0.2",
"react-native": "0.66.4"
...
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-decorators": "^7.17.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "7.14.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.66.2",
...
Try this. It worked for me
};