error: SyntaxError: .../node_modules/react-native/Libraries/Components/Touchable/Touchable.js: Unexpected token, expected "]" (25:45)

This issue has been created since 2022-09-18.

New Version

0.70.0

Old Version

0.63.3

Build Target(s)

iOS 16.0

Output of react-native info

System:
OS: macOS 13.0
CPU: (8) x64 Apple M1
Memory: 27.19 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/alex/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK:
API Levels: 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 31.0.0
System Images: android-25 | Google APIs ARM 64 v8a, android-29 | Google Play ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a, android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 4.2 AI-202.7660.26.42.7486908
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 11.0.10 - /opt/homebrew/opt/[email protected]/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.1 => 0.70.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Issue and Reproduction Steps

  1. Build the app using Xcode 14
  2. yarn start --reset-cache
  3. Error displays
alexkendall wrote this answer on 2022-09-20
hemantgogia09 wrote this answer on 2022-09-20

+1 Same issue is happening to me

ChaseApptentive wrote this answer on 2022-09-20

Same for Android upgrading form 0.63.4

alexkendall wrote this answer on 2022-09-20

By the way @here. I had to patch that file using the version from 0.69 with patch-package to get the latest version of react-native to compile after upgrading from 0.63.3

bulatshafigullin wrote this answer on 2022-09-27

Just upgraded from 0.63.4 to 0.70.1 and got this error
This helped me
rm -fr node_modules
watchman watch-del-all

lmarques6 wrote this answer on 2022-10-06

Running into this error as well, upgraded from 0.64.0 to 0.70.2

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Could you implement image-minimizer-webpack-plugin or other? 2 2022-04-28 2022-05-23
index.html is missing 3 2022-02-14 2022-08-10
Closing instrument dialogs doesn't delete underlying object 1 2021-09-15 2022-05-16
Linux - Out-of-bounds crash when deleting 0Dxx, scrolling down, and undoing 2 2021-09-16 2022-09-19
0Sxx/0Gxx with xx = speed - 1 is erased by next-row 0Gxx on earlier channel 1 2021-09-16 2022-08-31
Remove unused `cmt_lvalue` exprt attribute 0 2022-06-14 2022-09-02
Left and right reversed 2 2021-04-13 2022-05-16
Autoloader - ComponentVersion alias path 1 2021-09-03 2022-08-23
Support for independant modules import 17 2020-05-01 2022-10-03
模板工程执行.\mpflutter packages get报错 1 2022-02-08 2022-10-03
Add HolodEX Elixir community client library to Stoplight list of libraries 1 2021-10-10 2022-09-17
Picture mode setting keeps switching to "big picture" 2 2021-10-05 2022-09-17
Unexpected error while processing event 107 on partial trades with same trade id 1 2022-01-24 2022-08-04
swift 中使用remove 没有作用, 移除不了 7 2020-12-03 2022-09-25
pyqt5 使用QAxWidget怎么显示Microsoft Word? 7 2018-03-13 2022-09-23
Internal Server Error - Unexpected identifier 1 2021-12-11 2022-07-20
Origin didn't connect 0 2021-06-25 2022-10-06
Elevate current process? 1 2021-01-10 2022-10-04
More specific exceptions 1 2021-10-01 2022-07-19
ERR undefined 2 2021-06-02 2022-01-20
Add error to Table.update() without where clause 0 2022-01-29 2022-09-25
[Feature request] maybe can add audio recorder, add speaker capture for screen recorder. 0 2022-04-02 2022-08-13
[Bug]: Git commands pass null in Obsidian, works fine via command line 3 2022-07-14 2022-09-28
Shoot DNS test: unsupported kubernetes version "v1.22.2" 1 2021-09-28 2022-10-04
Extension system 1 2021-12-28 2022-01-02
Drop support for python 3.5 1 2021-02-01 2022-08-03
"nginx.conf.sigil" at <index $port_map_list 1>: error calling index: reflect: slice index out of range 3 2022-05-20 2022-09-24
encode sprixels at raster time 0 2021-11-28 2022-09-22
【优化建议】模型writeTransform 中优化 0 2022-01-22 2022-09-18
Getting consent for a live.com account fails with invalid_request: The provided request must include a 'client_id' input parameter. 6 2022-04-30 2022-09-26
Feature request: saveable per-game configs for "Button/Key remap" OSD option 4 2022-02-13 2022-07-10
Sequelize errors don't print properly in jest 9 2022-07-26 2022-10-06
fenced code blocks are incorrectly treated as inline code 6 2021-10-07 2022-09-26
git-version Task Needs Custom CA Certs Bundle Injector Method 0 2022-06-10 2022-08-28
Setting up local development environment `yarn setup-dev` fails 2 2021-11-05 2022-10-03
UX for the license view 2 2021-10-21 2022-07-12
Write-up draft speclet for integration monitoring 1 2021-10-21 2022-07-29
Gradle - Unable to Strip Some Libraries, Packaging as They Are 1 2022-02-01 2022-07-23
Search in Navegation Desktop Bar 0 2021-10-13 2022-09-27
Unexpected token < in JSON at position 0 2 2022-03-25 2022-09-14
ARM-NEON intrinics fails to build on GCC for arm64 2 2021-01-11 2022-09-27
`onMouseEnter|Leave` incorrect on views with border but no backgroundColor 0 2021-11-01 2022-10-05
Wrong icon in the taskbar on Windows 17 2021-11-22 2022-09-07
Usage with Nvidia prime manager? 4 2021-07-31 2022-07-09
request: Possibility to run scripts in predefined sequential order 2 2022-02-09 2022-09-26
Can mlxtend show the features' name in Sequential Feature Selection for Regression 0 2021-03-23 2022-09-27
ERROR: could not initialize GLFW - Nvidia 0 2021-12-16 2022-10-04
Can't login with 22.04, loops back to login screen every time 9 2022-07-12 2022-09-23
Severe jank observed when enabling useMaterial3 in Flutter 3 3 2022-05-20 2022-10-04
Codepoint 984567 not found in font, aborting. 3 2022-05-20 2022-09-26