Closed DanielBertocci closed 1 month ago
Oops, that should not happen! Thank you for the heads up. I really appreciate it. I'll keep the issue open as to track the fix to this.
Hmmm turns out that this is how the func core tools work and generate the files. I updated the README file to avoid build error on quick start.
Thanks again for bringing this to my attention. I appreciate you taking the time to let me know.
I tried to set up a new workspace with this plugin following the readme provided here.
If I follow literally the steps,
nx run my-new-app:start
fails because the naming chosen for the functions "my-new-app" and "my-new-func" generates a function with invalid names.Expand here to see the console error
### Console Error ```console > nx run my-new-app:start [my-new-app] my-new-app/src/functions/my-new-func.ts:3:23 - error TS7010: 'my', which lacks return-type annotation, implicitly has an 'any' return type. 3 export async function my-new-func(request: HttpRequest, context: InvocationContext): PromiseIf I use a name without dashes though (e.g. myfunc) it works.
I would recommend to change the example and then, if possible, to handle that case ;-)