While developing I'm getting an "Uncaught TypeError: Cannot read property 'id' of null" error.
Odd thing is, first it's all fine, preview, publish, all works. Next day I come back to the exact same file and I get this error, I get it when opening the project file and previewing but also when I point my browser to the locally published banner. Clearing cache and hard reloading does not help.
The project is set to polite-loading. What I see is the polite-loading image come up, then the display:none and then nothing. In the HTML it only shows the empty wrapper tag for the content of the banner.
How can I fix this?