has no exported member 'CoordinateReferenceSystem'
Asked Answered
E

1

6

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.

Ethnocentrism answered 28/11, 2017 at 13:34 Comment(3)
3 minutes ago I got the same problem. My ng build throws an error ".../node_modules/@types/geojson/index"' has no exported member 'CoordinateReferenceSystem'."Camboose
You can track the GitHub issue here: github.com/DefinitelyTyped/DefinitelyTyped/issues/21794Albaalbacete
npm install @types/[email protected] is worked for meEthnocentrism
A
6

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.

Aureolin answered 28/11, 2017 at 16:7 Comment(1)
yes, you are right. later had identified the solution , see my commentEthnocentrism

© 2022 - 2024 — McMap. All rights reserved.