急速模块图中不存在模块“反应”

Vis*_*ech 3 linkedin react-native linkedin-api react-native-android react-native-ios

我正在尝试在我的应用程序中进行LinkedIn集成。所以,我做了如下:

安装的依赖项如下:

npm install react-native-linkedin --save;

因此,在启动应用程序时,出现以下错误:

Failed to load bundle(http://localhost:8081/index.bundle?
platform=ios&dev=true&minify=false)with
error:(Unable to resolve module 'react' from
'mypath/App.js':Module 'react' does not exist
in the Haste module map
Run Code Online (Sandbox Code Playgroud)

可能是什么问题?谢谢。

Jay*_*mar 5

在终端中运行此命令,然后重试

npm start -- --reset-cache
Run Code Online (Sandbox Code Playgroud)