wuba / taro-playground

The Taro Playground App is a cross-platform application developed using Taro, to help developers develop and debug Taro applications.
https://wuba.github.io/taro-playground/
Apache License 2.0
248 stars 51 forks source link

npm run start 出错 #17

Closed Qinruiy closed 2 years ago

Qinruiy commented 2 years ago

系统: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.
zhiqingchen commented 2 years ago

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

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

zhiqingchen commented 2 years ago
ERROR  Invariant Violation: Tried to register two views with the same name

此类问题可以通过

yarn why react-native-safe-area-context

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