wuba/taro-playground

npm run start 出错

Qinruiy opened this issue · 2 comments

系统:windows
taro-cli@3.3.14

 ERROR  Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

"react-native-safe-area-context": "^3.1.8",

看一下 https://github.com/wuba/taro-playground/blob/main/package.json
这个文件里的依赖是否一致

ERROR  Invariant Violation: Tried to register two views with the same name

此类问题可以通过

yarn why react-native-safe-area-context

查看是否安装两个不同版本的原生依赖