close

[Solved] TypeError: console.log(…) is not a function

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error TypeError: console.log(…) is not a function in javascript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How TypeError: console.log(…) is not a function Error Occurs?

Today I get the following error TypeError: console.log(…) is not a function in javascript.

How To Solve TypeError: console.log(…) is not a function Error ?

  1. How To Solve TypeError: console.log(…) is not a function Error

    To Solve TypeError: console.log(…) is not a function Error There is another way to encounter this error. console.log is not immutable and it is possible to accidentally overwrite the value.

  2. TypeError: console.log(…) is not a function

    To Solve TypeError: console.log(…) is not a function Error There is another way to encounter this error. console.log is not immutable and it is possible to accidentally overwrite the value.

Solution 1

2020 Update

One possible cause can be the declaration of var console somewhere in your script.

Use:

window.console.log(...);

instead. Worked for me.

I hope it helps

Solution 2

There is another way to encounter this error. console.log is not immutable and it is possible to accidentally overwrite the value.

console.log = 'hi';

In this case just reload the page to undo the damage.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment