1

我在链接推送工具包库时遇到问题。

我正在使用 Visual Studio 代码在 react-native 中编程,库“@hmscore/react-native-hms-push”似乎没有正确导入,错误是“找不到模块的声明文件”@hmscore/react -native-hms-push'。

我使用的是 5.3.0-301 版本。

检查 maps-kit 和 push-kit 似乎不同 si index.ts,在 push-kit 的 src 目录中缺少

我用过这个指南:

https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/integraternmodule-0000001050157791

我错过了什么吗?

谢谢

4

1 回答 1

1

解决方案是:

yarn add @types/hmscore__react-native-hms-push

或等效的npm

于 2021-10-04T13:15:51.227 回答