-
创建时间
20年5月21日
-
最后回复
20年5月28日
- 7
回复
- 261
浏览
- 4
用户
- 2
链接
我重新安装了2.版本就可以运行,但是安装最新版本仍然是报错如下:
While trying to resolve module leancloud-storage from file , the package node_modules/leancloud-storage/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (node_modules/leancloud-storage/dist/av-rn-min.js. Indeed, none of these files exist:
node_modules/leancloud-storage/dist/av-rn-min.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)node_modules/leancloud-storage/dist/av-rn-min.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
看下 @leancloud/platform-adapters-react-native 是否加入了项目依赖?
参见 文档。
您好!我按着您的方法试了,现在的报错变成了这样,我也多次删除node_modules 移除package中的dependency再install,还是没有解决,请问这是什么问题呢,谢谢!


