"No export named" error, only when deploying while logged in to serverless pro

I’m having a weird error that only occurs when deploying while logged in to serverless framework pro.

  An error occurred: blabla-api - No export named bla-bla found.

The exact same stack will deploy fine everytime when I’m not logged in. The I’m importing a few exports and it’ll vary which one is reported as not found. But they are definitely there.

I have imports specified in this way:

environment:
    cognitoUserPoolId: !ImportValue ${self:custom.sstApp}-userPoolId

If I remove all the imports in the environement section, it fails on imports in the iamRoleStatements

Any ideas?

Complete end of deploy output:

Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
..
Serverless: Operation failed!
Serverless: View the full error output: ----
Serverless: Publishing service to the Serverless Dashboard...
Serverless: Successfully published your service to the Serverless Dashboard: https://app.serverless.com/blabla

  Serverless Error ---------------------------------------

  An error occurred: blabla-api - No export named bla-bla found.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              14.15.1
     Framework Version:         2.20.0
     Plugin Version:            4.4.2
     SDK Version:               2.3.2
     Components Version:        3.5.1``