george43g / better-firebase-functions

This repo provides functionality for a better way of organising files, imports and function triggers in Firebase Cloud Functions
Mozilla Public License 2.0
179 stars 15 forks source link

Library keeps creating deleted function #34

Closed nhuethmayr closed 2 years ago

nhuethmayr commented 2 years ago

I'm running into a weird issue where a function that has been renamed keeps being deployed. Has anyone seen that before?

image

roomman commented 2 years ago

Deleting /lib (or whatever your output dir is called) and rebuilding fixed it for me. I hope that solves it for you too 🤞🏻

nhuethmayr commented 2 years ago

Deleting /lib (or whatever your output dir is called) and rebuilding fixed it for me. I hope that solves it for you too 🤞🏻

Worked like a charm - I didn't even know that there was such a temp directory.

george43g commented 2 years ago

This would happen because your old build files are still in the output directory, and bff scans this directory to find your functions. Don't think this is something this lib can fix.