Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Value can't be converted to a dictionary

Tags:

javascript

I am getting the following error in Firefox but not in Chrome:

TypeError: Value can't be converted to a dictionary

The error occurs when clicking on a link defined as

<a onclick="scroll()">bla</a>

when scroll is defined as a function in my page.

I tried googling it but nothing came up.

The Firefox console is telling me that the error is on the first line of the page. Which is blank. Does anyone have any idea what it can be?

Firefox console is telling me it is on line 0 of my page however there is no javascript there.

like image 315
Aryeh Armon Avatar asked Apr 24 '15 11:04

Aryeh Armon


1 Answers

The problem is the browser using the built in scroll function which I accidentally overrode.

I changed the name of my function and all works correctly:)

like image 181
Aryeh Armon Avatar answered Sep 20 '22 06:09

Aryeh Armon