question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build and deployment failed due to an error.

See original GitHub issue

I’ve no exact title for this error, but it’s not working for me.

node_modules/firestore-export-import/node_modules/@google-cloud/firestore/types/firestore.d.ts(117,29): error TS1005: ']' expected.
node_modules/firestore-export-import/node_modules/@google-cloud/firestore/types/firestore.d.ts(117,48): error TS1005: ';' expected.
node_modules/firestore-export-import/node_modules/@google-cloud/firestore/types/firestore.d.ts(117,50): error TS1109: Expression expected.
node_modules/firestore-export-import/node_modules/@google-cloud/firestore/types/firestore.d.ts(117,51): error TS1109: Expression expected.
node_modules/firestore-export-import/node_modules/@google-cloud/firestore/types/firestore.d.ts(2278,1): error TS1128: Declaration or statement expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
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.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-15T10_33_21_750Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code2
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

Below are a few package versions I’m using atm…

firebase-tools@10.9.2
   "typescript": "^4.0.3"
   "firebase-admin": "^9.2.0",
   "firebase-functions": "^3.13.2",
   "firebase-functions-helper": "^0.8.0",
   "firestore-export-import": "^1.2.1",

Tried upgrade, downgrading and other stuff but nothing is working.

firebase deploy --project staging --token $FIREBASE_TOKEN

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dalenguyencommented, Sep 22, 2022

It’s probably you have an older version of Node. Here is a similar error https://github.com/HashLips/hashlips_art_engine/issues/424

1reaction
dalenguyencommented, Sep 15, 2022

Looks like it relates to @google-cloud packages. Do you have a sample repo that I can have a look at?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build errors during deployment to GitHub Pages · Issue #209
I am failed to deploy the ai-folio theme in my personal repository. Even I don't find any fruitful reason why it is happening....
Read more >
Build error details not available. Firebase Cloud Functions ...
functions[helloWorld(us-central1)]: Deployment error. Build failed: Build error details not available. Please check the logs at https://console.
Read more >
"Error building project: The build hook failed with status code 1".
Cause. There are multiple reasons why environment building fails. Usually, in the deployment log, you will see a long error message, where the ......
Read more >
Deploy failed due to an error in @netlify/plugin-functions-core ...
Works super on my local, but can't deploy. This function it complains of used to get build two months ago until last week....
Read more >
CSCvy55676 - FMC Deployment failed due to ... - Cisco Bug
Symptom: On FMC deployment transcript, you can see that deployment fails due to internal errors. Doing a pigtail deploy, you can see the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found