After not making any changes to my firebase-related files, I suddenly started encountering the following issue that I just can't seem to figure out:
We were unable to load your functions code. (see above)
- It appears your code is written in Typescript, which must be compiled before emulation.
- You may be able to run "npm run build" in your functions directory to resolve this.
This is what my firebase config file looks like:
{
"functions": {
"predeploy": "npm --prefix \"$RESOURCE_DIR\" run build",
"source": "server"
}
}
Here's a glimpse of my folder structure:
https://i.stack.imgur.com/564N1.png
And here's my tsconfig setup:
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"outDir": "./dist"
},
"exclude": ["node_modules", "test", "**/*spec.ts"],
"include": ["src/**/*", "src"]
}