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

<p>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.</p>

<p>The full error log can be seen in the below image:
<a href="https://i.stack.imgur.com/C1leK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C1leK.png" alt="enter image description here"></a></p>

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