Issue
i'm working with Firebase Cloud Functions and Node js, suddenly i got this error and don't know how to solve it.
Cloud function
exports.getNewTest=functions.https.onRequest((request, response) => {
response.end("Hello World");
});
CLI
Build failed: > build
> tsc
error TS18003: No inputs were found in config file '/workspace/tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '["lib"]'.; Error ID: 1a2262f3
Functions deploy had errors with the following functions:
getNewTest
i functions: cleaning up build files...
Error: There was an error deploying functions
Having trouble? Try again or contact support with contents of firebase-debug.log
tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"noImplicitReturns": true,
"noUnusedLocals": false,
"outDir": "lib",
"sourceMap": true,
"strict": false,
"target": "es2020",
"allowJs": true
},
"compileOnSave": false,
"include": [
"src"
]
}
I have other functions and they work properly. It occurs when i create new functions.
I tried adding "exclude": ["lib"] to tsconfig.json
and it doesn't work
Solution
I resolved my problem and just reinstalled Firebase CLI from 11.23.1 to 13.0.2, also checked the typescript version.
Answered By - Musa Aytmamatov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.