找不到模块'@ amcharts / amcharts4 / timeline'或其对应的类型声明

时间:2020-07-19 10:29:15

标签: angular amcharts4

我正在尝试在我的角度项目中添加Amchart时间线图

import { Component, OnInit, NgZone } from '@angular/core';
import * as am4core from "@amcharts/amcharts4/core";
import * as am4charts from "@amcharts/amcharts4/charts";
import * as am4plugins_timeline from "@amcharts/amcharts4/timeline"; // <-------------
import am4themes_animated from "@amcharts/amcharts4/themes/animated";

导入am4plugins_timeline时出现错误! 谢谢

1 个答案:

答案 0 :(得分:2)

采用:
import * as am4plugins_timeline from "@amcharts/amcharts4/plugins/timeline";