title: How to fix this error: error TS2456: Type alias 'Geometry' circularly references itself?
body: <p>I have a maven project in html, css and typescript. When I run the command: mvn clean install, I have this error:</p>
  <pre><code>ERROR in node_modules/@types/geojson/index.d.ts(79,13): error TS2456: Type alias 'Geometry' circularly references itself.
  
  [ERROR] Command execution failed.
  org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
      at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
      at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
      at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
      at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
      at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 02:35 min
  [INFO] Finished at: 2022-07-19T09:23:23+00:00
  [INFO] Final Memory: 8M/241M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (angular-cli build) on project TrimlyAngular: Command execution failed. Process exited with an error: 1 (Exit value: 1) -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (angular-cli build) on project TrimlyAngular: Command execution failed.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
      at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:302)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 20 more
  Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
      at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
      at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
      at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
      at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
      at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
      ... 22 more
  [ERROR] 
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  
  </code></pre>
  <p>There is my package.json file:</p>
  <pre><code>{
    &quot;name&quot;: &quot;project-name&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;license&quot;: &quot;MIT&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod --aot=true --base-href&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;,
      &quot;fixture-backend&quot;: &quot;node fixture-server/fixture-server.js&quot;,
      &quot;fixture-frontend&quot;: &quot;ng serve --proxy-conf fixture-server/fixture-proxy-conf.json&quot;,
      &quot;start-fixture&quot;: &quot; concurrently  \&quot;npm run fixture-backend\&quot; \&quot;npm run fixture-frontend\&quot; &quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.8.9&quot;,
      &quot;@angular/animations&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/cdk&quot;: &quot;^5.2.5&quot;,
      &quot;@angular/compiler&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/forms&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/http&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/language-service&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/material&quot;: &quot;^5.2.5&quot;,
      &quot;@angular/platform-browser&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;^6.1.10&quot;,
      &quot;@angular/router&quot;: &quot;^6.1.10&quot;,
      &quot;@babel/core&quot;: &quot;^7.10.2&quot;,
      &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.10.1&quot;,
      &quot;@babel/preset-react&quot;: &quot;^7.10.1&quot;,
      &quot;@beyerleinf/ngx-dnd&quot;: &quot;^6.0.4&quot;,
      &quot;@gooddata/react-components&quot;: &quot;^7.6.1&quot;,
      &quot;@recogito/annotorious-openseadragon&quot;: &quot;^2.0.5&quot;,
      &quot;@recogito/recogito-client-core&quot;: &quot;^0.1.5&quot;,
      &quot;@swimlane/dragula&quot;: &quot;^3.8.0&quot;,
      &quot;@swimlane/ngx-dnd&quot;: &quot;^5.1.0&quot;,
      &quot;@types/cropperjs&quot;: &quot;^1.3.0&quot;,
      &quot;@types/react&quot;: &quot;^16.9.36&quot;,
      &quot;angular-font-awesome&quot;: &quot;^3.1.2&quot;,
      &quot;angular-material&quot;: &quot;^1.1.7&quot;,
      &quot;angular-tree-component&quot;: &quot;^7.2.1&quot;,
      &quot;angular2-datetimepicker&quot;: &quot;^1.1.1&quot;,
      &quot;axiom-ngx-tree&quot;: &quot;^1.0.1&quot;,
      &quot;babel-loader&quot;: &quot;^8.1.0&quot;,
      &quot;body-parser&quot;: &quot;^1.19.0&quot;,
      &quot;bowser&quot;: &quot;^2.11.0&quot;,
      &quot;classlist.js&quot;: &quot;1.1.20150312&quot;,
      &quot;concurrently&quot;: &quot;^5.2.0&quot;,
      &quot;cookie-parser&quot;: &quot;^1.4.5&quot;,
      &quot;core-js&quot;: &quot;^2.4.1&quot;,
      &quot;cropperjs&quot;: &quot;^1.5.9&quot;,
      &quot;crypto-js&quot;: &quot;^3.3.0&quot;,
      &quot;d3&quot;: &quot;^4.13.0&quot;,
      &quot;dpdm&quot;: &quot;^3.5.0&quot;,
      &quot;exifr&quot;: &quot;^7.1.3&quot;,
      &quot;file-saver&quot;: &quot;^2.0.2&quot;,
      &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
      &quot;invariant&quot;: &quot;^2.2.4&quot;,
      &quot;ionic2-rating&quot;: &quot;^1.2.2&quot;,
      &quot;jquery&quot;: &quot;^3.3.1&quot;,
      &quot;levon-angular-star-rating&quot;: &quot;^3.0.0&quot;,
      &quot;mime&quot;: &quot;^2.4.6&quot;,
      &quot;missing&quot;: &quot;0.0.1&quot;,
      &quot;ng-click-outside&quot;: &quot;^4.0.0&quot;,
      &quot;ng-pick-datetime&quot;: &quot;^5.2.6&quot;,
      &quot;ng2-nouislider&quot;: &quot;^1.7.7&quot;,
      &quot;ng2-pdfjs-viewer&quot;: &quot;^3.2.2&quot;,
      &quot;ngx-color&quot;: &quot;7.0.0&quot;,
      &quot;ngx-cookie&quot;: &quot;^3.0.1&quot;,
      &quot;ngx-cookie-service&quot;: &quot;^1.0.10&quot;,
      &quot;ngx-datatable-with-ie-fix&quot;: &quot;^8.0.0&quot;,
      &quot;ngx-drag-and-drop-lists&quot;: &quot;1.1.7&quot;,
      &quot;ngx-notification-bar&quot;: &quot;^0.1.4&quot;,
      &quot;ngx-perfect-scrollbar&quot;: &quot;^5.3.5&quot;,
      &quot;ngx-tree-dnd&quot;: &quot;^2.6.0&quot;,
      &quot;node-sass&quot;: &quot;^4.0.0&quot;,
      &quot;nouislider&quot;: &quot;^11.0.3&quot;,
      &quot;npm-install-missing&quot;: &quot;^0.1.4&quot;,
      &quot;openseadragon&quot;: &quot;^2.4.2&quot;,
      &quot;phantomjs&quot;: &quot;^2.1.7&quot;,
      &quot;rater-js&quot;: &quot;^0.5.8&quot;,
      &quot;react&quot;: &quot;^16.13.1&quot;,
      &quot;react-dom&quot;: &quot;^16.13.1&quot;,
      &quot;rxjs&quot;: &quot;^6.6.3&quot;,
      &quot;rxjs-compat&quot;: &quot;^6.0.0-rc.0&quot;,
      &quot;ts-md5&quot;: &quot;^1.2.7&quot;,
      &quot;uuid&quot;: &quot;^8.1.0&quot;,
      &quot;zone.js&quot;: &quot;^0.8.19&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular/cli&quot;: &quot;^6.2.9&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;^6.1.10&quot;,
      &quot;@types/d3&quot;: &quot;^4.13.12&quot;,
      &quot;@types/jasmine&quot;: &quot;~2.8.3&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.2&quot;,
      &quot;@types/jquery&quot;: &quot;^3.3.1&quot;,
      &quot;@types/node&quot;: &quot;~6.0.60&quot;,
      &quot;codelyzer&quot;: &quot;^4.0.1&quot;,
      &quot;husky&quot;: &quot;^4.3.0&quot;,
      &quot;jasmine-core&quot;: &quot;~2.8.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
      &quot;karma&quot;: &quot;^3.1.4&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;^2.2.0&quot;,
      &quot;karma-coverage&quot;: &quot;^1.1.2&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;^1.2.1&quot;,
      &quot;karma-istanbul-preprocessor&quot;: &quot;0.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;~1.1.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^0.2.2&quot;,
      &quot;karma-junit-reporter&quot;: &quot;^1.2.0&quot;,
      &quot;karma-phantomjs-launcher&quot;: &quot;^1.0.4&quot;,
      &quot;madge&quot;: &quot;^3.12.0&quot;,
      &quot;prettier&quot;: &quot;^2.1.2&quot;,
      &quot;pretty-quick&quot;: &quot;^3.1.0&quot;,
      &quot;protractor&quot;: &quot;^5.1.2&quot;,
      &quot;sass-resources-loader&quot;: &quot;^2.0.3&quot;,
      &quot;ts-node&quot;: &quot;~4.1.0&quot;,
      &quot;tslint&quot;: &quot;^5.9.1&quot;,
      &quot;tslint-config-prettier&quot;: &quot;^1.18.0&quot;,
      &quot;tslint-etc&quot;: &quot;^1.10.1&quot;,
      &quot;typescript&quot;: &quot;~2.9.2&quot;
    }
  }
  
  </code></pre>
  <p>I have searched on Internet and I already done this:</p>
  <ul>
  <li>Delete package-lock.json and node_modules folder and then run npm install ;</li>
  <li>Modify the typescript version in package.json.</li>
  </ul>
  <p>Thank you by advance for your help.</p>