node.js - React Native 无法解析模块../when

标签 node.js react-native node-modules

我尝试在安装时使用 npm 模块

npm install when

但由于某种原因,它一直说找不到它,即使它在那里。我已清除所有缓存并重建项目。这是唯一一个出现问题的模块,它说when/dist/when 不存在。

import when from "when";

enter image description here

最佳答案

尝试,react-native链接,然后再次执行react-native start/npm start和react-native run-android/run-ios。安装软件包后,我总是重新启动一切

关于node.js - React Native 无法解析模块../when,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44072581/

相关文章:

node.js - 顶级等待是否有超时?

node.js - react native : is it possible to avoid storing all dependencies in node_modules subfolder

node.js - Nodejs响应速度和nginx

node.js - 初始化独立 Waterline 后无法查询集合

node.js - 为什么 `DEBUG=foo node index.js` 在 `scripts` 的 `package.json` 部分失败

Node.js错误: Cannot find module 'firebase/storage'

reactjs - 抽屉未覆盖 react 导航中的标题

node.js - ElasticSearch - 未刷新索引更改

react-native - 如何制作简单的动画效果

ios - React Native v0.61.5 获取 ITMS-90809 : Depracated API Usage