NodeJS error TS2456: Type alias Geometry circularly references itself

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.

image

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"
},

image

The run:

npm install

image

References

https://stackoverflow.com/questions/73034566/how-to-fix-this-error-error-ts2456-type-alias-geometry-circularly-references

Leave a Reply

Your email address will not be published. Required fields are marked *