title: Using `ng add @ngrx/store` on Angular 10 gives error and adds Old version of ngrx
body: <p>On using the command <code>ng add @ngrx/store</code>, I am getting the below attached error.</p>
  <p><a href="https://i.stack.imgur.com/2RG6i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2RG6i.png" alt="enter image description here" /></a></p>
  <p>However, the @ngrx package that gets installed is an old one <code>&quot;@ngrx/store&quot;: &quot;^1.5.0&quot;,</code>.
  My <code>package.json</code> is:</p>
  <pre class="lang-js prettyprint-override"><code>   // ...other packages
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/common&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/compiler&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/core&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/forms&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/router&quot;: &quot;~10.0.0&quot;,
      &quot;@ngrx/store&quot;: &quot;^1.5.0&quot;,
      &quot;rxjs&quot;: &quot;~6.5.5&quot;,
      &quot;tslib&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.3&quot;
    },
  </code></pre>
  <p>When I am trying to modify the <code>app.module.ts</code> file to add the <code>StoreModule</code> manually, I am getting the below error too.</p>
  <p><a href="https://i.stack.imgur.com/3ucoU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ucoU.png" alt="enter image description here" /></a></p>
  <p>The NgRX <a href="https://ngrx.io/guide/store/install" rel="nofollow noreferrer">official documentation</a> says that they modify the below code using schematics:</p>
  <pre class="lang-js prettyprint-override"><code>Update your src/app/app.module.ts &gt; imports array with StoreModule.forRoot({}).
  </code></pre>
  <p>My question, therefore is, <strong>Am I doing something wrong? How do I use the <code>ng add @ngrx/store</code> command and solve all these mentioned issues?</strong></p>
  <hr />
  <h2>UPDATE</h2>
  <p>It is a known <a href="https://github.com/ngrx/platform/issues/2604" rel="nofollow noreferrer">bug</a> with the Angular CLI v10.</p>
  <blockquote>
  <p>Solution is to use  <code>ng add @ngrx/store@latest</code></p>
  </blockquote>