Unhandled JS Exception: Unexpected identifier '_classCallCheck'. import call expects exactly one argument. no stack
See original GitHub issueI have a similar issue: Unhandled JS Exception: Unexpected identifier ‘_classCallCheck’. import call expects exactly one argument. no stack Please helps me
I have this issue too and my package.json is:
{
"main": "index.js",
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@mohamadkh75/react-native-jalali-datepicker": "^1.1.1",
"@react-native-async-storage/async-storage": "^1.15.17",
"@react-native-community/slider": "^4.2.0",
"@react-native-masked-view/masked-view": "^0.2.6",
"@react-navigation/bottom-tabs": "^6.0.9",
"@react-navigation/drawer": "^6.1.8",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"expo": "~38.0.1",
"expo-splash-screen": "~0.4.0",
"expo-status-bar": "^1.0.0",
"expo-updates": "~0.2.10",
"pushe-react-native": "^2.5.0",
"react": "~16.11.0",
"react-dom": "~16.11.0",
"react-native": "0.64.2",
"react-native-adtrace": "^1.2.3",
"react-native-camera": "^4.2.1",
"react-native-chart-kit": "^6.11.0",
"react-native-elements": "^3.4.2",
"react-native-geolocation-service": "^5.3.0-beta.4",
"react-native-gesture-handler": "~1.6.0",
"react-native-image-picker": "^4.7.1",
"react-native-maps": "^0.30.1",
"react-native-paper": "^4.11.2",
"react-native-qrcode-scanner": "^1.5.4",
"react-native-reanimated": "~1.9.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "~2.9.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "^12.1.1",
"react-native-swiper": "^1.6.0",
"react-native-unimodules": "~0.10.1",
"react-native-vector-icons": "^9.0.0",
"react-native-web": "~0.11.7",
"react-navigation": "^4.4.4",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-saga": "^1.1.3"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"babel-jest": "~25.2.6",
"jest": "~25.2.6",
"react-test-renderer": "~16.11.0"
},
"jest": {
"preset": "react-native"
},
"private": true
}
what is _classCallCheck and how it works? please help??
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:15
Top Results From Across the Web
React native: Error "Unexpected identifier '_classCallCheck ...
The same error message occurred twice. Unexpected identifier '_classCallCheck'.import call expects exactly one argument Unexpected identifier ' ...
Read more >Unexpected identifier '_classCallCheck'. import call expects ...
Unhandled JS Exception : Unexpected identifier '_classCallCheck'. import call expects exactly one argument. no stack. 解决办法 1.
Read more >the attached codes doesnt work - React Native
“Unhandled JS Exception: Unexpected identifier '_classCallCheck'. import call expects exactly one argument. no stack”.
Read more >Unexpected identifier '_classCallCheck'. import call expects ...
Unhandled JS Exception : Unexpected identifier '_classCallCheck'. import call expects exactly one argument. no stack. 在这里插入图片描述 ...
Read more >React native: Error "Unexpected identifier '_classCallCheck ...
[Solved]-React native: Error "Unexpected identifier '_classCallCheck'.import call expects exactly one argument"-React Native. Search. score:0.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my Error gone by updating
"babel-preset-expo": "~8.1.0",
to"babel-preset-expo": "~8.3.0",
then run
expo start -c
Happy Coding!
@mojvan and @vivek-y – this was linked in a similar thread and worked for me https://github.com/babel/babel/issues/14139#issuecomment-1011836916 (specifically, the part about updating my
babel.config.js
)