Live Server inject error

Hi all,

Just starting out on Javascript and I’ve installed the Live Server 5.6.1 extension (Ritwick Dey) as instructed in setting up your development space video.

The extension seems to work in that it opens the tab in Chrome and is can see my JS executing. However, it always has the following errors in the console and I can’t figure out why:
inject.js:372 GET http://127.0.0.1:5500/favicon.ico 404 (Not Found)
extractIconBase64 @ inject.js:372
(anonymous) @ inject.js:333
(anonymous) @ inject.js:789

Has anybody else encountered this and is there an easy way to resolve it?

Thanks,
Simon

The favicon.ico is the small image in the tab of the browser.

I assume this file is not present in your project folder so that’s the reason for the error.

Maybe cleaning the cache of the browser (CTRL F5) helps?

Hi Wiliam, thanks for the reply!

I’ve given that a try now but sadly it’s still present… maybe it will be easier to just add such a file to my project folder? I’ve not got as far as favicon.iso’s. Would it be as simple as adding a file with a .ico, would I need to src it in the code?

Thanks again. I’m still a complete newbie at programming and this error doesn’t seem to be a deal-breaker as the console is still showing the rest of the expected executed code. I do dislike seeing errors though!

Do these solutions help?
So adding:

<link rel="shortcut icon" href="">

or

<link rel="shortcut icon" href="#" />

Looks like it has nothing to do with Live Server.

Hi,
It’s simply says that the ‘GET’ method for this path http://127.0.0.1:5500/favicon.ico haven’t been found if you have something in your project relating this you should fix it.

See if this helps :

That did it, thanks very much guys! :slight_smile: