Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

has no exported member 'CoordinateReferenceSystem'

Iam using suing "d3": "^4.10.0", and "@types/d3": "^4.10.0", in my angular 4 project , Suddenly its start throwing error

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

I am come across this file which is using geojson https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-geo/index.d.ts

but I think type defination of geojson is not updated or , I am using worng version , can someone please help me.

like image 834
Ashish Yadav Avatar asked Nov 28 '17 13:11

Ashish Yadav


Video Answer


1 Answers

I got a very similar error in an angular 4 app. It was fixed by installing @types/geojson v 1.0.6

I am not sure how we inherited the bug in the first place though - we have fixed version npm packages in our package.json. We have a suspicion OpenLayers might be using d3.

like image 185
Toli Avatar answered Nov 15 '22 12:11

Toli