Я не касался файлов, связанных с firebase, и не могу понять, почему именно это только что произошло, но я продолжаю получать:
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.
мой файл конфигурации firebase:
{
"functions": {
"predeploy": "npm --prefix \"$RESOURCE_DIR\" run build",
"source": "server"
}
}
и структура моей папки:
Мой tsconfig:
{
"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"]
}