@Benzilla wrote:
I have a bug where I'm met with the error:
"Uncaught TypeError: Cannot read property 'style' of null"
When running the commandcocos 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:
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