Google+

Friday, June 25, 2021

SOLVED : How to fix Angular 10 Ionic ERROR "NullInjectorError: No provider for Contacts!" on Ionic 5

 In this article we review how to  fix Angular 10 Ionic ERROR "NullInjectorError: No provider for Contacts!"  on Ionic 5,    looking like this :




 How to fix Angular 10 Ionic ERROR "NullInjectorError: No provider for Contacts!"  using Ionic 5


After you received this error, you'd probably take a look at the documentation on the official website of Ionic, and on the Github repository for the Contacts component:

https://www.npmjs.com/package/@ionic-native/contacts
https://ionicframework.com/docs/native/contacts#usage

But the problem is also there: the documentation is not up to date.













You can copy-paste all pieces of source code as you move forward through this Tutorial, or elsewhere you can download the entire Angular code from the following URL:

That's All!!! 
Enjoy Angular.....

      by Carmel Schvartzman

כתב: כרמל שוורצמן

Friday, June 11, 2021

SOLVED - how to solve the error " there is no package called ‘bslib’ " on Heroku deployment from GitHub repository

 In this tutorial we'll learn how to solve the  error " there is no package called ‘bslib’ " on Heroku deployment from GitHub repository  

This error occurs while deploying an app to Heroku from a GitHub repository . Your app works perfectly on your development machine, but it would fail on deployment, like this :


Step by step how to  solve the error " there is no package called ‘bslib’ " on Heroku deployment from GitHub repository  


First of all, notice that it seems to be an ENCODING problem : something does not look good with these symbols :  " â€˜bslib’ "

So probably you just have been trying of changing the encoding for your files, also at your machine or uploading again the files to your repository at GitHub.

However, nothing seems to help.

But if you take a closer look, the error states "...NO package called..."  : the PACKAGES are not there.

And inside the word  â€˜bslib’  you can realise the name of the unknown package .

So check whether you are loading this package :



In case you are not loading it, just add it to the setup installations : 



So, redeploy and take a look again: the app is now working:






That's all.... 
In this tutorial we've seen how to solve the  error " there is no package called ‘bslib’ " on Heroku deployment from GitHub repository  .
Happy programming.....
      By Carmel Shvartzman

כתב: כרמל שוורצמן