- Uncaught TypeError: Cannot read property ‘nodeType’ of nullThis problem was happening because of binding an
HTMLelement before it was created.
the script was loaded on top of the
HTML(in the head) but it needed to be loaded at the bottom of my
HTMLcode (just before the closing body tag).