If this error appears whenever you click on the <a>
tag. Try the code below.
CORRECT :
<a href="javascript:void(0)">
This malfunction occurs because your href is set to # inside of your <a>
tag. Basically, your app is trying to find href which does not exist. The right way to set empty href is shown above.
WRONG :
<a href="#">