0

I switched to Node 8 in my Cloud/Firebase Functions so I could access the spread operator to build libraries.

After doing so, it seems like deploys take about 2x the time and fail 80% of the time.

When they fail I get errors like

⚠  functions[projectsIndexDelete(us-central1)]: Deployment error.
Build failed: Build error details not available

I never had these errors running Node 6 cloud functions.

Is this a known issue or did I miss a configuration step?

So far I have only added this snippet to package.json

"engines": {
  "node": "8"
},
Luke Pighetti
  • 4,541
  • 7
  • 32
  • 57

1 Answers1

2

This is a firebase-tool known issue regarding the Node 8 version

F10
  • 2,843
  • 2
  • 12
  • 18
  • I just switched back to Node 6, submitted a blank index.js file to delete my functions, and now everything is back to normal. I will not be using Node 8 until the community agrees it is production ready. – Luke Pighetti Aug 28 '18 at 16:54
  • Ugh still seems to be ongoing issue in Jan 2019 :-(. – RoccoB Jan 16 '19 at 17:40
  • Indeed, [is still ongoing](https://github.com/firebase/firebase-tools/issues/853#issuecomment-451340372) – F10 Jan 16 '19 at 17:43