ionic-team / ionic-team/ionic-storage

Angular 16 upgrading

Open
#314 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
456
Forks
97
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.