Table of Contents
NodeJS error TS2456: Type alias Geometry circularly references itself
Err info
ERROR in node_modules/@types/geojson/index.d.ts:79:13 - error TS2456: Type alias 'Geometry' circularly references itself.
79 export type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
~~~~~~~~
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
How to fix TS2456: Type alias Geometry circularly references itself
Add "@types/geojson": "7946.0.8"
to dependencies
node in package.json
"dependencies": {
"@types/geojson": "7946.0.8"
},
The run:
npm install