react-native - 已安装库但在 react-native 环境中不起作用
问题描述
每当我安装库时,无论是原生基础还是反应原生文本输入效果。它每次都会给出相同的错误。我不知道是什么导致了这里的问题。
error: bundling failed: Error: While trying to resolve module
native-base` from file `/home/jas/Hopper/screen/Home.js`, the package `
/home/jas/Hopper /node_modules/native-base/package.json` was successfully
found. However, this package itself specifies a `main` module field that
could not be resolved (`/home/jas/Hopper/node_modules/native-base/dist
/src/index.js`. Indeed, none of these files exist:
解决方案
删除 /node_modules/native-base/android/app 中的构建文件夹
推荐阅读
- android - 这个firebase问题的解决方案是什么?
- regex - 正则表达式匹配具有最小长度的数字中的偶数位数
- swift - 如何将一个 SpriteNode 的坐标转换为另一个不是子节点或后代节点的坐标
- ruby-on-rails - 在表单助手中传递选项是否需要显式哈希?
- php - SQL 整数范围变量定义 + PHP
- python - 从视频游戏截图中提取 Python 文本
- go - 将来自 stringreader 的输入解析为 int 失败,语法无效
- python - 将频率字典转化为频率矩阵
- c - 每次调用该函数时 Printf 都会更改输出
- linux - ssh X 转发的初始延迟很长,然后是“无法打开显示”