Moving site from one environment to another
Check your settings.local.php (or settings.php if you don't have one) for 'install_profile' and make sure this is set and matches your staging environment:

https://github.com/drupal/drupal/blob/2e8b29651cfb08309098c239ce9d03e724d747b3/sites/default/default.settings.php#L279

If that doesn't work you can take a look at https://www.drupal.org/node/2870028 as @jaypan said