title: ERROR in node_modules/@firebase/firestore/dist/index.d.ts:27:28 - error TS1005: ']' expected
body: <p>I tried to include firebase to my angular app, I import all but when I run <code>ng serve</code> I get this error:</p>
  <pre class="lang-none prettyprint-override"><code>ERROR in node_modules/@firebase/firestore/dist/index.d.ts:27:28 - error TS1005: ']' expected.
  
  27     [K in keyof T &amp; string as `${Prefix}.${K}`]+?: T[K];
                                ~~
  node_modules/@firebase/firestore/dist/index.d.ts:27:47 - error TS1005: ';' expected.
  
  27     [K in keyof T &amp; string as `${Prefix}.${K}`]+?: T[K];
                                                   ~
  node_modules/@firebase/firestore/dist/index.d.ts:27:49 - error TS1109: Expression expected.
  
  27     [K in keyof T &amp; string as `${Prefix}.${K}`]+?: T[K];
                                                     ~
  node_modules/@firebase/firestore/dist/index.d.ts:27:50 - error TS1109: Expression expected.
  
  27     [K in keyof T &amp; string as `${Prefix}.${K}`]+?: T[K];
                                                      ~
  node_modules/@firebase/firestore/dist/index.d.ts:28:1 - error TS1128: Declaration or statement expected.
  
  28 };
  
  </code></pre>
  <p>I searched in internet and I found lots of info about this.</p>
  <p>I tried to the following:</p>
  <ul>
  <li>Downgrade <code>@angular/fire</code> package to <code>6.1.5</code></li>
  <li>Increment typescript version.</li>
  <li>Reinstall <code>node_modules</code>.</li>
  </ul>
  <p>I tried all of the solutions that I found on the internet, but I don't know how I can solve it.</p>
  <p>I use Anguar 10.</p>
  <p>This is my <code>package.json</code>.</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;xxxxxxxx&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/cdk&quot;: &quot;^10.2.7&quot;,
      &quot;@angular/common&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/compiler&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/core&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/fire&quot;: &quot;^7.3.0&quot;,
      &quot;@angular/forms&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/material&quot;: &quot;^10.2.7&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~10.2.4&quot;,
      &quot;@angular/router&quot;: &quot;~10.2.4&quot;,
      &quot;@datorama/akita-ng-entity-service&quot;: &quot;^7.0.0&quot;,
      &quot;@ngrx/store&quot;: &quot;^10.1.2&quot;,
      &quot;angularfire2&quot;: &quot;^5.0.0-rc.7&quot;,
      &quot;bootstrap&quot;: &quot;^5.1.3&quot;,
      &quot;firebase&quot;: &quot;^9.0.2&quot;,
      &quot;normalize.css&quot;: &quot;^8.0.1&quot;,
      &quot;rxjs&quot;: &quot;~6.6.0&quot;,
      &quot;sha1&quot;: &quot;^1.1.1&quot;,
      &quot;tslib&quot;: &quot;^2.4.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1002.3&quot;,
      &quot;@angular/cli&quot;: &quot;~10.2.3&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~10.2.4&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.5.0&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.20.49&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.0&quot;,
      &quot;jasmine-core&quot;: &quot;~3.6.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~5.0.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~3.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;~4.0.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;sass&quot;: &quot;^1.50.1&quot;,
      &quot;ts-node&quot;: &quot;~8.3.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;^4.0.8&quot;
    }
  }
  
  </code></pre>