Script.js:53 Uncaught (in promise) TypeError: Cannot set property 'innerHTML' of null

help plz

Can you please post your full code and make sure to ask a question related to what you post? All I can tell right now is you try to assign some HTML to the innerHTML of an element. However, it appears the main is not an element. Where do you define what main is? We need to see your full JS and HTML code to be able to help you further.

To enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).