79718908

Date: 2025-07-29 16:03:38
Score: 1.5
Natty:
Report link

Thank you traynor for your answer.
I just have issue with importing Carousel class:
Error: src/app/components/display/video/viewer/carousel/image-carousel.component.ts:4:26 - error TS7016: Could not find a declaration file for module 'bootstrap'. '/home/steph/2_advanced_computer_science/projects/peertubeseeker/app_front/peertube-seeker/node_modules/bootstrap/dist/js/bootstrap.js' implicitly has an 'any' type.

I can see the Carousel class it in :

/home/steph/2_advanced_computer_science/projects/peertubeseeker/app_front/peertube-seeker/node_modules/bootstrap/js/src/carousel.js

Where It is declared as : class Carousel extends BaseComponent
But I don't find the module to put in my :
@NgModule({
declarations: [
ViewerPanelLayout,
VideoDisplayViewerPanel,
ImageCarouselComponent,
ChanelSearchComponent
],
imports: [
CommonModule,
ViewersRoutingModule,
ReactiveFormsModule,
FormsModule
]
})

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @NgModule
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: KnowledgePath