Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build issue angular 5 has no exported member 'DSVRowAny'

Tags:

d3.js

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 *'.
like image 232
Anup Gupta Avatar asked May 24 '18 05:05

Anup Gupta


3 Answers

Seems, this issue due to update

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

I have this problem too.

Try to fix lib version to 1.0.31 in your package.json

"devDependencies": {
    "@types/d3-dsv": "1.0.31"
}
like image 186
Komdosh Avatar answered Oct 20 '22 14:10

Komdosh


It looks like the issue may have been the "latest" tag for @types/d3-dsv switching from the 1.0.x versions (that contain exports for DSVRowString etc.) to 0.4.x (that don't), as described in this GitHub issue. Hopefully there will be a response to the issue that will remove the need for the version pinning.

So, at least for me, it was enough to pin to the latest 1.x.x version, and not necessary to lock to previous version (as suggested in another answer), e.g:

"devDependencies": {
  "@types/d3-dsv": "^1.0.32"
}

Update (28/05/18):

Looks like the issue is temporarily resolved due to the release of version 1.0.33 causing the "latest" tag to point back to the 1.0.x branch. However, as per a comment on the GitHub issue this isn't necessarily a permanent fix, and another release of the 0.4.x code could cause the same issue.

like image 31
Will Avatar answered Oct 20 '22 15:10

Will


It seems to be resolved, I just built my application without any problems any without the devDependencies for d3-dsv.

There is was an update to the package a couple of hours ago: https://www.npmjs.com/package/@types/d3-dsv/v/0.4.4?activeTab=versions

like image 1
phyratokar Avatar answered Oct 20 '22 15:10

phyratokar