Category: Development

Angular2/Ionic2: No provider for ….

When your developing an angular 2/ionic 2 application and you get the the following error: EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in :0:0ORIGINAL EXCEPTION: No provider for UserService!ORIGINAL STACKTRACE:Error: DI Exception    at NoProviderError.BaseException [as constructor] (http://localhost:8100/build/js/app.bundle.js:2300:23)    at NoProviderError.AbstractProviderError [as constructor] (http://localhost:8100/build/js/app.bundle.js:27491:16)    at new NoProviderError (http://localhost:8100/build/js/app.bundle.js:27528:16)    at ReflectiveInjector_._throwOrNull (http://localhost:8100/build/js/app.bundle.js:28516:19)    at ReflectiveInjector_._getByKeyDefault (http://localhost:8100/build/js/app.bundle.js:28544:25)    at ReflectiveInjector_._getByKey (http://localhost:8100/build/js/app.bundle.js:28507:25)   
Read More »

Ionic\Cordova EACCESS Error

When your running the command “ionic run ios or ionic emulate ios” on a Mac you may be presented with the following error: Error: spawn EACCES The most common cause of this error is that the scripts in your hooks directory don’t have execute permission. You may also try removing and adding your ios provider.
Read More »

VSCode and Ionic/Cordova Platform File Locking

If your running into file locking, like in the platform/android/assets/www folder, trying to use the Ionic or Cordova CLI tools with VSCode you need to exclude those folders from your VSCode’s explorer. The benefit here is also they will disappear from your search results from VSCode as well. The error you might be receiving might
Read More »