Warning: Can't resolve all parameters for Settings in src/providers/settings.ts: ([object Object], ?). This will become an error in Angular v5.x
webmobiles opened this issue · comments
I'm submitting a ... (check one with "x")
[x ] bug report
Current behavior:
when I build for production, have no warning with normal build:
ionic cordova build android
Warning: Can't resolve all parameters for Settings in src/providers/settings.ts: ([object Object], ?). This will become an error in Angular v5.x
Steps to reproduce:
- ionic start mySuperApp super
- ionic cordova build android --prod
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
global packages:
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.12
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.5.0
System:
Node : v8.1.0
OS : Linux 4.8
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.3
i really have much think here what is wrong ?
why it shows this warning the defaults is passed
any clarification here ?
It scares a little, maybe the apps crash because of it, even though nothing has happened in my case.
2 points, i need to provide here.
1.) I swear, i didn't touched that settings.ts or any of its internal logic to cordova local storage.
2.) Yes, i am posting this from 2018 year. Yes, people of 2018 still depending on your contribution.
Can anyone from ionic please look into this. And yes i read this issue 58 too, i though that after all those conversation, resulted settings.ts is a refined piece of code from ionic starter product branch.
@hari-007 Were you able to resolve your issue? A good place to check is settings implementation in ionic super starter app. Look at the app.module.ts file, and then to use it: the following worked for me in any of the page's onInit() or constructor..
//this is how we read settings
this.settings.load().then(settings => {
if (settings) {
console.log("settings: ", settings);
}
});
Hope this helps.
@pranaykothari
That line of code does not work.