Firebase deploy of Cloud Functions fail with TypeScript

Firebase deploy of Cloud Functions fail with TypeScript

I want to host my Ionic app to firebase hosting. Now when I run firebase deploy command I got below error
npm ERR! errno 1
npm ERR! functions@ build: `tslint -p tslint.json && ./node_modules/.bin/tsc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Error: functions predeploy command terminated with non-zero exit code1

What I am missing to work this properly


Solution 1:

Change in Package.json

"build": "node_modules/.bin/tslint -p tslint.json && ./node_modules/.bin/tsc"


"build": "node_modules/.bin/tslint -p tslint.json && tsc"

this will work for you.

Solution 2:

Inside the functions folder a cause can be an error in some .ts file (index.ts or other file that you manually created), but it doesn’t show on log


Related:  How to retain RecyclerView's position after Orientation change, while using Firebase & ChildEventListener?