Deploy fails with "Cannot find module 'firebase-admin' " even though module is in the function's package.json

so the question I have (and I am not a firebase expert) is to whether we are actually not finding/downloading the package or whether compilation of the project is failing because something about how the module is getting imported into the code isn’t right. Sometimes compilation fails for things like this:

I’m going to ask an engineer who knows a bit more about this than i do to take a look, also.