ionic-team / ionic-team/ionic-storage

Angular 16 upgrading

Aperta
#314 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
456
Fork
97
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

After Angular upgrading from 15 to 16.0.0 I'm getting the following error on app serve:

error NG6002: 'IonicStorageModule' does not appear to be an NgModule class. ... node_modules/@ionic/storage-angular/index.d.ts:6:22 [ng] 6 export declare class IonicStorageModule { [ng] ~~~~~~~~~~~~~~~~~~ [ng] This likely means that the library (@ionic/storage-angular) which declares IonicStorageModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy

"@ionic/angular": "^7.0.5",
"@ionic/storage-angular": "^3.0.6",
"@capacitor/app": "5.0.0",
"@capacitor/browser": "5.0.0",
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0",

@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
IonicModule.forRoot(),
IonicStorageModule.forRoot({
name: ...
}),
AppRoutingModule,
...
],
providers: [
...
],
bootstrap: [AppComponent],
})

even though version changed it didnt fix.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the app-serve error with the listed Angular 16, @ionic/angular, and @ionic/storage-angular versions, then inspect node_modules/@ionic/storage-angular/index.d.ts and the shown NgModule imports. Done means identifying a supported Angular/Ivy-compatible dependency or a confirmed integration fix and documenting the result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend, mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.