docchula / FlickPlayer

SMCU Recorded Lecture Browser
https://flick.docchula.com
0 stars 0 forks source link

perf: upgrade to Angular 18 #29

Open ittipatken opened 2 months ago

ittipatken commented 2 months ago

@ionic and @angular/fire are causing errors on this upgrade.

Error: src/app/app.component.html:1:1 - error NG8001: 'ion-app' is not a known element:
1. If 'ion-app' is an Angular component, then verify that it is part of this module.
2. If 'ion-app' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

1 <ion-app>
  ~~~~~~~~~

  src/app/app.component.ts:7:18
    7     templateUrl: 'app.component.html',
                       ~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.

Error: src/app/app.component.html:2:3 - error NG8001: 'ion-router-outlet' is not a known element:
1. If 'ion-router-outlet' is an Angular component, then verify that it is part of this module.
2. If 'ion-router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

2   <ion-router-outlet></ion-router-outlet>
    ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:18
    7     templateUrl: 'app.component.html',
                       ~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.

Error: src/app/app.module.ts:25:14 - error NG1010: Value

Error: src/app/app.module.ts:29:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

29         provideFirebaseApp(() => initializeApp(environment.firebase)),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:30:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

30         provideFirestore(() => getFirestore()),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:31:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

31         provideAuth(() => getAuth()),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:32:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

32         provideAnalytics(() => getAnalytics()),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:33:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

33         providePerformance(() => getPerformance()),
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:34:9 - error TS2322: Type 'EnvironmentProviders' is not assignable to type 'any[] | Type<any> | ModuleWithProviders<{}>'.

34         provideRemoteConfig(() => getRemoteConfig()),