Great, thanks for the extra info. I was trying to work out why nobody else has run into this issue. Multisite installations are fairly rare, and different people run them in different ways. The root cause is that you are running the assets:precompile
step before you migrate all the multisite databases.
I’ve added a fix for the issue - please can you try rebuilding again?