You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use empty string path when function source is not specified (#90)
* fix: use empty string path when --source flag and FUNCTION_SOURCE env var are not specified
I removed '/' from CODE_LOCATION that set the default function directory to root in commit #77. This causes this error in 1.3.0,
```
npx @google-cloud/functions-framework --target=helloWorld
The "path" argument must be of type string. Received type undefined
```
When --source flag and FUNCTION_SOURCE env var are not specified, one of the 'path' arguments in resolve() is undefined. This causes the error above.
I've added empty string as an argument in the case above. This should fix the bug.
* fix: remove redundant process.cwd in resolve()
0 commit comments