Angular 16 不支持 agm/core 模块吗?

问题描述 投票:0回答:1

我正在使用 Angular 16。当我尝试使用 AgmCoreModule 时,它抛出了一个错误。

node_modules/@agm/core/lib/core.module.d.ts:25:22 [ng]     25 export declare class AgmCoreModule { [ng]                             ~~~~~~~~~~~~~ [ng]     This likely means that the library (@agm/core) which declares AgmCoreModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

node.js angular angular-google-maps agm-core
1个回答
0
投票

这个库已经有一段时间没有更新了。 “最新”版本仍然有

ivy:false
选项。这意味着它不是为支持 ivy 而构建的。

Angular 在 v16 中放弃了 ngcc(Angular 兼容性编译器),以帮助支持非 ivy 库。

您还可以在存储库上看到此问题

© www.soinside.com 2019 - 2024. All rights reserved.