Thanks for the answer - it was a completely different error after all that was related to our custom modifications to some plugins. This specific error occured because our customizations of the upload plugin didn’t require the module “viewConfiguration”. So in the index.js these lines were missing:
const viewConfiguration = require("@strapi/plugin-upload/server/controllers/view-configuration");
module.exports = {
...
"view-configuration": viewConfiguration,
};
`