Using RN 0.61.5 (also happened on 0.61.4)
(使用RN 0.61.5(也在0.61.4上发生))
It happens whether I execute react-native run-android --variant=release
or gradlew assembleRelease
directly.
(无论我直接执行react-native run-android --variant=release
还是gradlew assembleRelease
。)
I tried reinstalling the said modules, to no avail.
(我试图重新安装上述模块,但无济于事。)
I also deleted the node_modules folder and ran npm cache clear --force
and it did nothing.
(我还删除了node_modules文件夹,并运行了npm cache clear --force
,它什么也没做。)
The babel parser and the cli-platform-android modules are also at the latest version
(babel解析器和cli-platform-android模块也是最新版本)
error SyntaxError: C:devmy-app
ode_modules
eact-nativeLibrariesComponentsAccessibilityInfoAccessibilityInfo.android.js: Unexpected token, expected ";" (21:5)
19 | const TOUCH_EXPLORATION_EVENT = 'touchExplorationDidChange';
20 |
> 21 | type ChangeEventName = $Keys<{
| ^
22 | change: string,
23 | reduceMotionChanged: string,
24 | screenReaderChanged: string,. Run CLI with --verbose flag for more details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
ask by Micka?l Hassine translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…