【发布时间】:2020-07-28 09:13:36
【问题描述】:
我在我的 Angular 应用程序中使用 d3.js 版本 3 脚本。
我已经使用命令在 Angular 应用程序中安装了 d3
npm i d3@3
并将 d3 导入为
import * as d3 from 'd3';
即使我如上所述导入了 d3, 我遇到了错误
Property 'layout' does not exist on type 'typeof import("C:/Users/srikar.vodeti/Downloads/imp/dashboardVisual/networkDiagram/node_modules/@types/d3/index")'. 106 var tree = d3.layout.tree()
当我使用 d3.任何方法
提前谢谢..
【问题讨论】:
-
您遇到了什么错误?你可以在你的问题中添加它吗?
-
是的,提到了错误