你好。我只是试图让默认的 "re-natal init SomeApp" 结果正常工作,但我遇到了问题。
我已经按照https://github.com/drapanjanas/re-natal中的说明安装了 re-natal 和所有依赖项
然后按照配置了 avd 模拟实例并启动后的以下步骤执行
$ re-natal use-android-device avd
$ re-natal use-figwheel
$ lein figwheel android
(seperate terminal)
react-native run-android
结果是以下内容
错误:捆绑失败:SyntaxError: C:\Repositories\dots-world\node_modules\react-native\scripts\figwheel-bridge.js: unexpected token (75:20)
at Parser.raise (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:6325:17)
at Parser.unexpected (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:7642:16)
at Parser.parseExprAtom (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8841:20)
at Parser.parseExprSubscripts (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8412:23)
at Parser.parseMaybeUnary (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8392:21)
at Parser.parseExprOps (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8267:23)
at Parser.parseMaybeConditional (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8240:23)
at Parser.parseMaybeAssign (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8187:21)
at Parser.parseParenAndDistinguishExpression (C:\Repositories\dots-world\node_modules\@babel\parser\lib\index.js:8978:28)
令人沮丧的是,两天前我第一次试图使用 re-natal init 时,一切正常。
有什么想法吗?