Unhandled JS Exception: Unexpected token Expected a ')' or a ' after a parameter declaration.
See original GitHub issueDescription
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® Core™ 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
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:28 (2 by maintainers)
https://github.com/babel/babel/issues/14139#issuecomment-1011836916
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.