没有导出的成员'CoordinateReferenceSystem'

Ash*_*dav 6 d3.js angular-nvd3

我使用suing "d3": "^4.10.0","@types/d3": "^4.10.0",在我的角度4项目中突然开始抛出错误

ERROR in @types/d3-geo/index.d.ts (39,19): Namespace '"@types/geojson/index"' has no exported member 'CoordinateReferenceSystem'.
Run Code Online (Sandbox Code Playgroud)

我遇到过这个使用geojson的文件 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-geo/index.d.ts

但我觉得geojson的类型定义没有更新,或者我使用的是worng版本,有人可以帮助我.

小智 6

我在角度4应用程序中得到了一个非常类似的错误.它是通过安装修复的@types/geojson v 1.0.6

我不知道我们最初是如何继承这个bug的 - 我们已经修复了npm软件包package.json.我们怀疑OpenLayers可能正在使用d3.