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
Unhandled JS Exception: Unexpected token Expected a ')' or a ' after a parameter declaration. #32875
Comments
Facing the same error in react-native 0.61.5. can anyone help? |
I'm working on project with RN 0.61.5 too. |
Same error here 😩 react-native-cli: 2.0.1 |
Facing the same issue on RN 0.61.5 |
Same issue here with RN 0.63.4. Was working fine yesterday. |
It's an error in react-native class -> node_modules/react-native/Libraries/Blob/URL.js For some reason inside the class they are having to type as variables in a .js file Example: |
FWIW, the issue doesn't appear to be happening in RN 0.66.x |
For 0.63.x at least, that file hasn't changed in almost 2 years so it shouldn't suddenly be breaking now. There must be another dependency that has changed recently that is causing this error. |
doesn't work for me 😭 |
This appears related to babel, not react-native. I believe the issue is "@babel/traverse" 7.16.8: babel/babel#14139 |
I finally got it to work by setting explicit versions in my devDependencies and resolutions. I also needed to delete my node_modules and yarn.lock, but YMMV. I went back to 7.16.5 since it was the upgrade to 7.16.7 that I first saw the issue, but the latter may be safe.
|
Facing the same issue on RN 0.62.2 |
Don't work for me @@ |
now, i found solution to fix this issue . |
Facing the same issue on RN 0.59.9 |
it works for me. Thanks |
same error with I have uninstalled node_modules, cleaned Gradle build, re-installed everything and started the app. but still, it is showing the same error. |
try |
works here! |
If the solution in the Babel repository doen't work for someone, we will need a repository that we can use to reproduce the bug. |
Drop-in replacement |
change your babel.config.js file presets: [[
'module:metro-react-native-babel-preset',
{
unstable_disableES6Transforms: true
}
]], |
What to make in that file ? |
Not working with this change as well. |
It works!! |
Thank you so much, it fixed this error |
I can confirm after bumping |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
after delete file yarn.lock and yarn install
then build app , that error occur
Version
0.60.6
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 11.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 218.86 MB / 20.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.3.0 - /usr/local/bin/node
Yarn: 1.22.17 - ~/Documents/RabilooWorkSpace/yakuodo_app_mobile/node_modules/.bin/yarn
npm: 7.15.1 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
IDEs:
Android Studio: 4.2 AI-202.7660.26.42.7351085
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.6 => 0.60.6
Steps to reproduce
step 1: delete file yarn.lock and Podfile.lock
step 2: run 'yarn install'
step 3: run 'cd ios and Pod install'
step 4: build app
after show splash screen , app show error
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: