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

Function in nested folder not working #21

Closed tzvc closed 2 years ago

tzvc commented 3 years ago

Hi there!

I'm trying to export functions from the following folder structure:

- src/
   -https/
       -recipe/
            create.func.ts
            read.func.ts

I was expecting the output to be two functions named:

https-recipe-create
https-recipe-read

Instead, it seems to take into account only the first two folder level and generate two functions

https-recipe
https-recipe

Which of course cannot be deployed:

HTTP Error: 409, Function https-recipe in region europe-west1 in project myapp already exists

Weird thing is that, if I remove one level of nesting (remove /recipe in between), they deploy properly.

Am I missing anything?

Cheers! 😃

tzvc commented 3 years ago

Any updates on this ? I can't seem to find a way around that problem and it's the very reason I wanted to use this package in the first place

ivan416 commented 3 years ago

Experiencing the same problem. There seems to be a bug with nested folder structure.

blasco commented 3 years ago

Same situation here

george43g commented 2 years ago

Closing this issue as this is now fixed