Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ionic storage doesn't work

$
0
0

I’m following just like https://ionicframework.com/docs/angular/storage says so, but gets the following error:

image

here’s my app module code:

...
import { IonicStorageModule } from '@ionic/storage';

@NgModule({
    declarations: [AppComponent],
    entryComponents: [],
    imports: [BrowserModule,
        IonicModule.forRoot(),
        AppRoutingModule,
        AddCardPageModule,
        ConfirmPageModule,
        SearchPageModule,
        EditProfilePageModule,
        SearchingPageModule,
        RadarPageModule,
        ResultsPageModule,
        AddMembersPageModule,
        AddPayersPageModule,
        CabinPopoverPageModule,
        TicketPopoverPageModule,
        ConfirmTransferPageModule,
        CancelTicketPageModule,
        TransferCabinPageModule,
        EventInfoPageModule,
        HttpClientModule,
        AngularSvgIconModule.forRoot(),
        IonicStorageModule.forRoot()],

    providers: [...

if I remove import {Storage} from '@ionic/storage'; from my LoginPage and from its constructor, the error goes away, but I need to use storage. Help please

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>