When I attempt to construct the react-native app, it builds efficiently however then I get this error when the app hundreds: error: index.js: Unknown possibility: .dependencies. Take a look at https://babeljs.io/docs/en/babel-core/#choices for extra details about choices.
All of the solutions I discovered on-line are associated to react-native-dotenv
which I am not utilizing, so I am caught. I am new to react native and do not know a lot about troubleshooting babel, so any assistance is appreciated. Nothing I’ve modified or eliminated will get me a special error. My bundle.json and babel.config.js are under.
bundle.json
{
"identify": "hescreeningapp",
"model": "0.0.1",
"non-public": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"begin": "react-native begin",
"check": "jest"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.18.2",
"@react-native-material/core": "^1.3.7",
"@react-navigation/native": "^6.1.6",
"@react-navigation/native-stack": "^6.9.12",
"paper": "^0.12.17",
"react": "18.2.0",
"react-native": "^0.71.8",
"react-native-fs": "^2.20.0",
"react-native-paper": "^5.8.0",
"react-native-safe-area-context": "^4.5.3",
"react-native-screens": "^3.20.0",
"react-native-vector-icons": "^9.2.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@varieties/jest": "^29.2.1",
"@varieties/react": "^18.0.24",
"@varieties/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.9",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"jest": {
"preset": "react-native"
}
}
babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
env: {
manufacturing: {
plugins: ['react-native-paper/babel'],
},
},
};