我正在尝试使用https://facebook.github.io/react-native/docs/getting-started.html上的说明为Android创建我的第一个React Native应用程序.设置依赖项并连接我的Android设备后,我跑了
react-native init app
cd app
react-native run-android
Run Code Online (Sandbox Code Playgroud)
这启动了React Packager,它无法捆绑此错误:
错误:捆绑失败:"TransformError:/Users/luky/dev/app/index.android.js:意外令牌"(处理预设时:\"/ Users/luky/dev/app/node_modules/babel-preset-react-本地/ index.js\")"
我在用:
我将生成的项目(包括node_modules)推送到Github,以防它有所帮助:https://github.com/luky1971/react-native-app
有谁知道为什么我可能会收到意外的令牌错误?任何帮助将不胜感激!