Firebase Cloud Feature Deployment Fails with TypeScript

I want to host my Ionic firebase hosting app. Now when I run the command firebase deploy, I hit below the error

npm ERR! code ELIFECYCLE
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 miss for proper operation

+4
source share
2 answers

Change in Package.json

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

to

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

This will work for you.

+4
source

Inside the folder, the functionscause may be an error in some file .ts( index.tsor another file that you manually created), but it does not appear in the log

0
source

Source: https://habr.com/ru/post/1690491/


All Articles