From 411da5cf034913b560e8a9ec4ed0a6bcd25e4b4a Mon Sep 17 00:00:00 2001 From: KhUmBaL! Date: Tue, 19 Apr 2022 02:33:58 +0700 Subject: [PATCH] Fix build errors for angular 13 ModuleWithProviders should also be imported from '@angular/core' and not '@angular/compiler/src/core' --- projects/carousel/src/lib/carousel.module.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/carousel/src/lib/carousel.module.ts b/projects/carousel/src/lib/carousel.module.ts index b5661f2..422fc7e 100644 --- a/projects/carousel/src/lib/carousel.module.ts +++ b/projects/carousel/src/lib/carousel.module.ts @@ -1,4 +1,4 @@ -import { NgModule, Injectable } from '@angular/core'; +import { NgModule, Injectable, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; @@ -10,7 +10,6 @@ import { HAMMER_GESTURE_CONFIG, HammerModule } from '@angular/platform-browser'; -import { ModuleWithProviders } from '@angular/compiler/src/core'; // https://github.com/angular/angular/issues/10541#issuecomment-300761387 @Injectable() @@ -26,7 +25,7 @@ export class MatCarouselHammerConfig extends HammerGestureConfig { exports: [MatCarouselComponent, MatCarouselSlideComponent] }) export class MatCarouselModule { - static forRoot(): ModuleWithProviders { + static forRoot(): ModuleWithProviders { return { ngModule: MatCarouselModule, providers: [