React Native遇到的问题(四)

版权声明:欢迎大家关注我的博客,更多文章请移步新的地址:http://student9128.top https://blog.csdn.net/student9128/article/details/79774394

Hint: This error often happens when you’re running the packager (local dev server) from a wrong folder. For example you have multiple apps and the packager is still running for the app you were working on before.
If this is the case, simply kill the old packager instance (e.g. close the packager terminal window) and start the packager in the correct app folder (e.g. cd into app folder and run ‘npm start’).
This error can also happen due to a require() error during initialization or failure to call AppRegistry.registerComponent.

解决方案:
之前运行了一个项目,导致终端冲突,关闭所有终端,重启即可。

猜你喜欢

转载自blog.csdn.net/student9128/article/details/79774394