@rafarco wrote:
Hello!
I’m getting the following error after migrating my code to Ionic 5 with Router. I was using NavParams to pass parameters between the different pages of the app but now I’m using Router and the Storage class. Here’s the error:
NullInjectorError: No provider for NavParams!
I don’t understand why this error appears because there is nothing about NavParams in my .ts files. If I include NavParams in the provider list on app.module.ts, I get a different error:
Error: Can't resolve all parameters for NavParams
The app is generated and deployed on the device I use, but only a blank screen is displayed.
Any clues about what’s going on and how to solve it? My Ionic version is 5.4.4.
Thanks in advance!
Posts: 1
Participants: 1