【发布时间】:2018-12-13 08:04:18
【问题描述】:
我使用 ngx-graph 来实现 DAG 的可视化。它在开发过程中完美运行并且不会引发错误。在已部署的构建中,它会在控制台中堆积错误。
我猜它正在寻找一些提供者,但包或演示中没有描述。这是我的 app.module.ts 文件:
import { NgxChartsModule } from '@swimlane/ngx-charts';
import { NgxGraphModule } from '@swimlane/ngx-graph'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
...
imports: [
...,
NgxChartsModule,
NgxGraphModule,
BrowserAnimationsModule
]
【问题讨论】: