如何解决angular-particle 库不工作 angular 9 (IVY :On)
我正在尝试在我的 angular 项目中使用 angular-particle 库。
我已经按照文档做了实现, 在模块文件中导入ParticlesModule。
在 HTML 中添加
<particles [style]="style" [width]="width" [height]="height" [params]="params"></particles>
在 TS 文件中,我创建了带有粒子 JSON 的 params 对象和带有 CSS 样式以及宽度和高度变量的样式对象。
我真的不想关掉 IVY。
是否有解决方法可以使用此软件包,或者是否有任何替代软件包可用于实现类似的动画?
编译错误::
ERROR in node_modules/angular-particle/index.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of AppModule,but Could not be resolved to an NgModule class.
This likely means that the library (angular-particle) which declares ParticlesModule has not been processed correctly by ngcc,or 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.
3 export declare class ParticlesModule {
角度版本:
Angular CLI:9.1.15
节点:10.16.3
操作系统:win32 x64
角度:9.1.13
常春藤工作区:是
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。