Firebase Functions Deploy looking in wrong directory for Node_Modules
had the same problem and this fix it for me Firebase-Admin package Typescript error in Cloud Functions Firestore : @types/googlemaps.
Just add this to your tsconfig.json
on functions folder:
"files": [
"node_modules/typescript/lib/lib.es6.d.ts"
],
"exclude": [
"node_modules"
]