Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.1K
Views
ERROR: has no exported member 'ɵɵFactoryDeclaration'

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.

I have also tried changing the enableIvy setting in tsconfig.lib.strong textprod.json to this:

"enableIvy": false,

But that doesn't seem to have any effect.

It keeps showing the following error:

Error: node_modules/swiper/angular/angular/src/swiper-slide.directive.d.ts:24:21 - error TS2694: Namespace '"C:/Angualr project/project1/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'. 24 static ɵfac: i0.ɵɵFactoryDeclaration<SwiperSlideDirective, never>; ~~~~~~~~~~~~~~~~~~~~ node_modules/swiper/angular/angular/src/swiper-slide.directive.d.ts:25:21 - error TS2694: Namespace '"C:/Angualr project/project1/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'. 25 static ɵdir: i0.ɵɵDirectiveDeclaration<SwiperSlideDirective, "ng-template[swiperSlide]", never, { "virtualIndex": "virtualIndex"; "class": "class"; "autoplayDelay": "data-swiper-autoplay"; "zoom": "zoom"; }, {}, never>; ~~~~~~~~~~~~~~~~~~~~~~ node_modules/swiper/angular/angular/src/swiper.component.d.ts:250:21 - error TS2694: Namespace '"C:/Angualr project/project1/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'. 250 static ɵfac: i0.ɵɵFactoryDeclaration<SwiperComponent, never>; ~~~~~~~~~~~~~~~~~~~~ node_modules/swiper/angular/angular/src/swiper.component.d.ts:251:21 - error TS2694: Namespace '"C:/Angualr project/project1/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.

Something that confused me a lot in the text of the error refers to a place that does not exist: C:/Angualr project/project1/node_modules/@angular/core/core"

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I was having this same issue earlier, I was able to resolve this by carrying out these few steps:

  1. deleted my node_modules folder
  2. ran npm i on the command line.
  3. lastly ran ng serve.
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!