When attempting to launch my Ionic app using npm start, an error message appears stating "NullInjectorError: No provider for Storage!".
I have already included Storage in the app.module.ts file as shown below:
imports: \[
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
IonicStorageModule.forRoot(),
HttpClientModule,
ModalPayConfirmationPageModule,
ModalAlergenPageModule
\],
The version of Ionic I am using is Ionic 4. Any assistance on resolving this issue would be greatly appreciated.
I have tried various solutions such as reinstalling Storage and Ionic, as well as removing and adding IonicStorageModule.forRoot()
in the app.module.ts file.