库已安装,但无法在本机环境中工作

时间:2018-07-06 13:59:47

标签: react-native native-base

无论何时我安装库,无论是本机库还是本机文本输入效果。每次都会给出相同的错误。 我不知道是什么引起了问题。

 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:

1 个答案:

答案 0 :(得分:0)

删除/ node_modules / native-base / android / app中的构建文件夹