title: ERROR: has no exported member 'ɵɵFactoryDeclaration'
body: <p>I am using Angular 11 and have encountered the following error when I added the swiper carousel to the project. I tried deleting and reinstalling node_modules but this did not solve the problem.</p>
  <p>I have also tried changing the <code>enableIvy</code> setting in <code>tsconfig.lib.strong</code> <code>textprod.json</code> to this:</p>
  <pre><code>&quot;enableIvy&quot;: false,
  </code></pre>
  <p>But that doesn't seem to have any effect.</p>
  <p>It keeps showing the following error:</p>
  <blockquote>
  <p>Error: node_modules/swiper/angular/angular/src/swiper-slide.directive.d.ts:24:21 - error TS2694: Namespace '&quot;C:/Angualr project/project1/node_modules/@angular/core/core&quot;' has no exported member 'ɵɵFactoryDeclaration'.
  24     static ɵfac: i0.ɵɵFactoryDeclaration&lt;SwiperSlideDirective, never&gt;;
  ~~~~~~~~~~~~~~~~~~~~
  node_modules/swiper/angular/angular/src/swiper-slide.directive.d.ts:25:21 - error TS2694: Namespace '&quot;C:/Angualr project/project1/node_modules/@angular/core/core&quot;' has no exported member 'ɵɵDirectiveDeclaration'.
  25     static ɵdir: i0.ɵɵDirectiveDeclaration&lt;SwiperSlideDirective, &quot;ng-template[swiperSlide]&quot;, never, { &quot;virtualIndex&quot;: &quot;virtualIndex&quot;; &quot;class&quot;: &quot;class&quot;; &quot;autoplayDelay&quot;: &quot;data-swiper-autoplay&quot;; &quot;zoom&quot;: &quot;zoom&quot;; }, {}, never&gt;;
  ~~~~~~~~~~~~~~~~~~~~~~
  node_modules/swiper/angular/angular/src/swiper.component.d.ts:250:21 - error TS2694: Namespace '&quot;C:/Angualr project/project1/node_modules/@angular/core/core&quot;' has no exported member 'ɵɵFactoryDeclaration'.
  250     static ɵfac: i0.ɵɵFactoryDeclaration&lt;SwiperComponent, never&gt;;
  ~~~~~~~~~~~~~~~~~~~~
  node_modules/swiper/angular/angular/src/swiper.component.d.ts:251:21 - error TS2694: Namespace '&quot;C:/Angualr project/project1/node_modules/@angular/core/core&quot;' has no exported member 'ɵɵComponentDeclaration'.</p>
  </blockquote>
  <p>Something that confused me a lot in the text of the error refers to a place that does not exist:
  <code>C:/Angualr project/project1/node_modules/@angular/core/core&quot;</code></p>