I hope somebody can help me here.
Haven not been actively developing our Ionic 3 app for months now. I keep trying to convince my company to start over.
Here we are with trying to do a release.
Trying to push up a browser version of the code.
To help debug I’m doing just a
ionic cordova build browser --aot
Once it is pushed up to the server I can log in, but as it trying to transition over to the home page I get this is chrome console.
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[Config]: StaticInjectorError[Config]: NullInjectorError: No provider for Config! Error: StaticInjectorError[Config]: StaticInjectorError[Config]: NullInjectorError: No provider for Config! at _NullInjector.get (core.js:923:1) at resolveToken (core.js:1211:1) at tryResolveToken (core.js:1153:1) at StaticInjector.get (core.js:1024:1) at resolveToken (core.js:1211:1) at tryResolveToken (core.js:1153:1) at StaticInjector.get (core.js:1024:1) at resolveNgModuleDep (core.js:10584:1) at NgModuleRef_.get (core.js:11805:1) at resolveDep (core.js:12301:1) at c (polyfills.js:3:19752) at Object.reject (polyfills.js:3:19174) at NavControllerBase._fireError (nav-controller-base.js:223:1) at NavControllerBase._failed (nav-controller-base.js:216:1) at nav-controller-base.js:263:45 at t.invoke (polyfills.js:3:14976) at Object.onInvoke (core.js:4626:1) at t.invoke (polyfills.js:3:14916) at r.run (polyfills.js:3:10143) at polyfills.js:3:20242
I have not done any major changes to this code. I don’t know what Config is.
Trying pretty much anything I can think of. I removed Ionic and Conrdova and just ran the install for it again. It looks like it installed Ionic 5 and Cordova 11.
Ionic: Ionic CLI : 5.4.16 (C:\Users\W\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.10 @ionic/app-scripts : 3.2.4 Cordova: Cordova CLI : 10.0.0 (email@example.com) Cordova Platforms : android 10.0.1, browser 6.0.0 Cordova Plugins : cordova-plugin-ionic-webview 5.0.0, (and 13 other plugins) Utility: cordova-res : not installed native-run : not installed System: NodeJS : v14.17.2 (C:\Program Files\nodejs\node.exe) npm : 6.14.13 OS : Windows 10
This is the version I’m on. I removed browser platform and added it again and still get the same error above.
Any idea what would cause this?