d3.js – 构建问题angular 5没有导出成员’DSVRowAny’

前端之家收集整理的这篇文章主要介绍了d3.js – 构建问题angular 5没有导出成员’DSVRowAny’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
ERROR in node_modules/@types/d3-fetch/index.d.ts(9,10): error TS2305: Module '"F:/AprotechSolutions/ems-beam-webapp/node_modules/@types/d3-dsv/index"' has no exported member
'DSVParsedArray'.
node_modules/@types/d3-fetch/index.d.ts(9,26): error TS2305: Module '"node_modules/@types/d3-dsv/index"' has no exported member 'DSVRowString'.
node_modules/@types/d3-fetch/index.d.ts(9,40): error TS2305: Module '"/node_modules/@types/d3-dsv/index"' has no exported member 'DSVRowAny'.
node_modules/@types/d3-fetch/index.d.ts(9,57): error TS2497: Module '"/node_modules/@types/d3-dsv/index"' resolves to a non-module entity
and cannot be imported using this construct.
node_modules/@types/d3/index.d.ts(24,15): error TS2498: Module '"/node_modules/@types/d3-dsv/index"' uses 'export =' and cannot be used with 'export *'.

解决方法

似乎,这个问题是由于更新

https://www.npmjs.com/package/@types/d3-dsv/v/0.4.4?activeTab=versions

我也有这个问题.

尝试在package.json中将lib版本修复为1.0.31

"devDependencies": {
    "@types/d3-dsv": "1.0.31"
}
原文链接:https://www.f2er.com/js/159682.html

猜你在找的JavaScript相关文章