-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got JS Exception: Unexpected keyword 'const'. Const declarations are not supported in strict mode. #23223
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write |
@react-native-bot below is Env info: |
It looks like you are using an older version of React Native. Please update to the latest release, v0.58 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running |
@react-native-bot Are you there ? |
React Native Environment Info: |
please install and use react-native-git-upgrade tool. just installing new react-native from NPM is not enough because usually it requires changes in Android and XCode projects. |
Also please make sure that RN modules are compatible with the latest version, and you're not using deprecated/remove feature. |
i have this error, please help |
@dulmandakh Okay ,I will try to do it.see you late |
Return at the version 57. This funtioned for me |
quick search reveal that it's related to babel config. could you please check if removing .babelrc helps, and make sure that you have backup. |
Hi, I'm having the same issue, using RN 0.58.4. Don't know how to resolve this. Any ideas? |
I'm having the same issue now :/ |
|
Getting back to 0.57.8 version solve this |
Can confirm that this is indeed the solution (for now). Thanks @agustin107!!! |
Can you make sure you're babel rc is correct (includes:
and you have followed the breaking changes updates from https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#updating-to-this-version |
I'm having the same issue now |
React Native Environment Info: |
Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code. Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗 |
React Native Environment Info: |
I want to upgrade RN to 0.57.0 from 0.38
my step is:
1.npm install --save [email protected]
2.react-native run-android
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: (8) x64 Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
Memory: 40.00 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.6.0 - /usr/local/bin/node
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
API Levels: 22, 23, 24, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.3, 27.0.3, 28.0.3
System Images: android-28 | Google APIs Intel x86 Atom
IDEs:
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
react: ^16.5.2 => 16.7.0
react-native: ^0.57.0 => 0.57.0
npmGlobalPackages:
react-native-cli: 2.0.1
Description
and Devices show
Do you know what is exception?Please help me.thank you.
Reproducible Demo
The text was updated successfully, but these errors were encountered: