I’ve solved this by running:
cd /var/discourse
git pull
./launcher rebuild app
BTW, when I was updating to the latest versions a couple of days ago, I got a message half way through the install to say there was a problem… but then I waited and when I checked back it said all the updates were up to date… so I assumed all was ok. Anyway it is all working fine again now.