gpt4 book ai didi

javascript - 将代码从 Angle 7 迁移到 Angle 10 时出现缺少依赖项错误

转载 作者:行者123 更新时间:2023-12-02 02:39:46 24 4
gpt4 key购买 nike

我正在将我的项目从 Angular 7 迁移到 10。当我尝试编译项目时,我已将其导入为 import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer'; ,我收到以下错误。

ERROR in The target entry-point "@agm/js-marker-clusterer" has missing dependencies:
- @agm/core/services/google-maps-types

因此,我尝试通过 npm install @agm/core/services/google-maps-types 安装缺少的依赖项,但最终收到另一个错误

npm ERR! code ENOLOCAL
npm ERR! Could not install from "@agm\core\services\google-maps-types" as it does not contain a
package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ryan\AppData\Roaming\npm-cache\_logs\2020-09-09T09_07_23_516Z-debug.log

我安装了 Angular cli 10.1。请帮忙

最佳答案

@agm/js-marker-clusterer 已替换为 @agm/markerclusterer

关于javascript - 将代码从 Angle 7 迁移到 Angle 10 时出现缺少依赖项错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63808481/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com