Strapi TypeError: Cannot read property 'register' of undefined

There was another forum thread about this also:

Most likely you have a miss-matched version or you have an outdated package cached in a package-lock.json or yarn.lock file.