TypeError: Cannot read properties of null (reading 'width')

If you are using 2021.2.3 then you should be able to make any edit on the Python side (e.g. insert and then delete a character) in the Auto translate code component to get the 2021.2 translator to spot .append and replace it with .push on the JS side.

Here’s a possible solution to your main issue.