Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
568 views
in Technique[技术] by (71.8m points)

javascript - 尝试编译发布版本时,React Native组件AccessibilityInfo和ActivityIndi??cator中的语法错误(Syntax errors in React Native components AccessibilityInfo and ActivityIndicator when trying to compile a release build)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...