How To Fix 'Uncaught TypeError: Cannot set properties of null' - JavaScript Debugging

preview_player
Показать описание


Contact Me----------

Music--------
Do you make music and want to let me use it on the channel? Shoot me an email so we can talk!

In this video we talk about how to solve a common JavaScript bug. "Uncaught Typerror: Cannot set properties of null (reading 'innerHTML')". Made by Garrett Hughes

#selftaughtdev #GarrettHughes
Рекомендации по теме
Комментарии
Автор

DUDE I WAS UP ALL NIGHT TRYNA FIGURE THIS OUT. and it came down to a simple spelling error haha yourea genius bro! thanks

dgross
Автор

You are the best in what you do. It perfectly works for me

CONFIDE_I.C.T.
Автор

Hello, new to coding, what happens tho if you have multiple script files? Should all of them be in the body of the document?

methodon
Автор

I'm providing a I'd to a div elements through the js file by using template literals. What happens is when I check through the insect from browser it is giving a space before the name of tag. For example - I'd=" item". But in the code I've not provided the space. Help me solve this issue please

jayeshahirrao
Автор

please help me Sir fixing the following error

With this line code, i've got Uncaught TypeError
panierString += + " Qte: "+ panier[x][0] + "</br>";

Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
at AfficherList

gvvwsix
Автор

Actually, I am getting an error for API POST request
[Cannot read properties of undefined (reading 'id')]
Searched many things not worked please let me know how to solve it

priyavgs
Автор

This is really good! I hope you make more debugging JS vids.

wyattford
Автор

Why am I getting,
"TypeError: Cannot read properties of undefined (reading '0')"
if I don't have a variable 0?
Btw, I am making a raycaster, If that helps.

a.j.outlaster
Автор

You have advice for getting better at javascript?

bagery
Автор

i got an error cannot read properties of null (reading addeventlistners)

UsmanAli-begd
Автор

in this video u haven't provided solution to fix this error in case we import javascript from seperate JS file,

HarmanKaur-kwwr
Автор

Bro i am struck with 45 min tanj you bro

tech_its_yours
Автор

thanks man i was using class instead of id's

uncannypotato
Автор

oh man i used query selector in a class name i should use getElementByClassName 😅

codewithsehran
Автор

Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML')

muhammadzikria
Автор

this really countered my temper lol i got so mad and confused.

josenunez
Автор

bro thank you so so so so much for this



console.log("self taught love you !");

samisultan
join shbcf.ru