Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17086

"Uncaught TypeError: Cannot read property 'style' of null" preventing app from running

$
0
0

@Benzilla wrote:

I have a bug where I'm met with the error: "Uncaught TypeError: Cannot read property 'style' of null" When running the command cocos run -p web. This results in not being able to start my app.

I seem to get this error when I add a new js file to my source folder. I've solved it previously by restarting my terminal, which seemed to do the trick. However, now I am unable to run my app in the browser because of this error.

The full error log can be seen in the below image:
enter image description here

It seems like the canvas element in CCBoot.js is null due to something not loading correctly. How can I go about solving this problem?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17086

Trending Articles