SOURCE

console 命令行工具 X clear
> Uncaught TypeError: Cannot read properties of null (reading 'getContext')
>
console
let canvas = document.querySelector('canvas');

canvas.getContext('2d');

<html>
    <body>
	<cnavas></cnavas>
</body>
</html>