title: Why am I getting "no exported member" errors when attempting to upgrade Angular?
body: <p><strong>The issue</strong></p>
  <p>I am trying to upgrade from Angular V9 to V11 and I'm struggling quite a lot with the the following errors</p>
  <p><code>Namespace node_module/@angular/core/core has no exported member ɵɵFactoryDeclaration</code>
  <code>Namespace node_module/@angular/core/core has no exported member ɵɵInjectorDeclaration</code>
  <code>Namespace node_module/@angular/core/core has no exported member ɵɵNgModuleDeclaration</code>
  <code>Namespace node_module/@angular/core/core has no exported member ɵɵɵComponentDeclaration</code></p>
  <p>but I'm not fully sure what it means and how I could fix it.</p>
  <p><strong>What I tried</strong></p>
  <p>I've looked at an alike issue: <a href="https://stackoverflow.com/questions/58078033/ng-serve-throwing-angular-core-core-has-no-exported-member-eefactorydef">Ng serve throwing @angular/core/core has no exported member 'eeFactoryDef'</a> which was the only trail I could find of this issue but it hasn't really helped me.</p>
  <p>I tried deleting my whole node_modules folder and reinstalling npm dependencies with <code>npm i</code>. I tried <code>npm ci</code> as well. I also tried adding</p>
  <pre class="lang-json prettyprint-override"><code>      &quot;@angular/core/*&quot;: [
          &quot;./node_modules/@angular/core/*&quot;
        ]
  </code></pre>
  <p>OR</p>
  <pre class="lang-json prettyprint-override"><code>      &quot;@angular/*&quot;: [
          &quot;./node_modules/@angular/*&quot;
        ]
  </code></pre>
  <p>to my <code>tsconfig.json</code>, but that also didn't help.</p>
  <p><strong>What I believe to be the issue</strong></p>
  <p>I have no clue about this, but I think that something is wrong with the paths of my NPM dependencies, since it refers to <code>@angular/core/core</code>, but there's no such folder in my <code>node_modules</code>.</p>
  <p>If I go to the <code>node_modules/@angular/core/core.d.ts</code> file, which I believe to be the <code>/core/core</code> path, although I'm not sure about this, then I see the same error there as well, which confuses me even more because I thought the issue would be between Angular and dependencies but not within Angular itself.</p>
  <p><strong>Package.json</strong></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;WorthaShot&quot;,
    &quot;version&quot;: &quot;0.0.3&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;build:prod&quot;: &quot;ng build --prod&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;~12.0.0-next.7&quot;,
      &quot;@angular/cdk&quot;: &quot;^11.2.7&quot;,
      &quot;@angular/common&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/compiler&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/core&quot;: &quot;~11.2.8&quot;,
      &quot;@angular/fire&quot;: &quot;^6.1.4&quot;,
      &quot;@angular/flex-layout&quot;: &quot;^10.0.0-beta.32&quot;,
      &quot;@angular/forms&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/material&quot;: &quot;^11.2.7&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/router&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/service-worker&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@fortawesome/angular-fontawesome&quot;: &quot;^0.8.2&quot;,
      &quot;@fortawesome/fontawesome-common-types&quot;: &quot;^0.2.35&quot;,
      &quot;@fortawesome/fontawesome-svg-core&quot;: &quot;^1.2.35&quot;,
      &quot;@fortawesome/free-brands-svg-icons&quot;: &quot;^5.15.3&quot;,
      &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;^5.15.3&quot;,
      &quot;@ngbmodule/material-carousel&quot;: &quot;^0.7.1&quot;,
      &quot;@ngx-meta/core&quot;: &quot;^9.0.0&quot;,
      &quot;@ngx-translate/core&quot;: &quot;^13.0.0&quot;,
      &quot;@ngx-translate/http-loader&quot;: &quot;^6.0.0&quot;,
      &quot;firebase&quot;: &quot;^8.3.2&quot;,
      &quot;flag-icon-css&quot;: &quot;^3.5.0&quot;,
      &quot;guid-typescript&quot;: &quot;^1.0.9&quot;,
      &quot;ngx-color-picker&quot;: &quot;^10.1.0&quot;,
      &quot;ngx-image-compress&quot;: &quot;^8.0.4&quot;,
      &quot;ngx-markdown&quot;: &quot;^10.1.1&quot;,
      &quot;ngx-sharebuttons&quot;: &quot;^8.0.5&quot;,
      &quot;ngx-spinner&quot;: &quot;^10.0.1&quot;,
      &quot;ngx-toastr&quot;: &quot;^13.2.1&quot;,
      &quot;rxjs&quot;: &quot;~6.6.7&quot;,
      &quot;tslib&quot;: &quot;^2.2.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.1102.7&quot;,
      &quot;@angular/cli&quot;: &quot;~11.2.7&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@angular/language-service&quot;: &quot;~12.0.0-next.7&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.6.0&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^14.14.37&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.1&quot;,
      &quot;jasmine-core&quot;: &quot;~3.6.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~6.3.2&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;ts-node&quot;: &quot;~8.10.2&quot;,
      &quot;tslint&quot;: &quot;~6.1.3&quot;,
      &quot;typescript&quot;: &quot;^4.2.3&quot;
    }
  }
  
  </code></pre>
  <p>What am I missing or not understanding here?</p>