Recently, I decided to update the dependencies of my Firebase functions project in order to utilize newer versions of firebase-functions and firebase-admin. However, this led to a requirement for more recent versions of TypeScript and tslint. After making these changes, here is the resulting package.json file:
{
"name": "functions",
"scripts": {
"lint": "./node_modules/.bin/tslint -p tslint.json",
"build": "./node_modules/.bin/tsc",
"serve": "npm run build && firebase serve --only functions",
"shell": "npm run build && firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"main": "lib/index.js",
"engines": {
"node": "8"
},
// rest of the package.json content...
However, upon trying to deploy my updated Firebase functions, I encountered numerous Typescript compilation errors that left me confused. If anyone has insights on what these errors are or how to resolve them, please share your knowledge.
// Error message output example...