Skip to content

The "path" argument must be of type string. Received type undefined @1.3.0 #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jpbarbosa opened this issue Sep 13, 2019 · 5 comments
Closed

Comments

@jpbarbosa
Copy link

jpbarbosa commented Sep 13, 2019

npx @google-cloud/functions-framework --target=helloWorld
The "path" argument must be of type string. Received type undefined

I notice the problem at version 1.3.0. At version 1.2.1 the command runs normally.

My system is MacOS 10.14.6, with Node 10.16.3 installed with Homebrew.

@dfanchon
Copy link

Having the same issue here with a cloud build deployment.

@timswalling
Copy link

When I add --source=./ to the arguments it removes the error message but I then get a 404 (Cannot GET /) when trying to trigger the function

@yvmarques
Copy link

I got the same error, and I fixed with the following flag at the start script.

functions-framework --target=functionName --source='./'

I guess @timswalling you need to enclose the ./ with quotes in order to have a string

@yvmarques
Copy link

I guess we would need a release with it, because at the moment, it also fails when we deploy on Google Functions with the same error.

@hdp617
Copy link
Contributor

hdp617 commented Sep 13, 2019

I'm sorry for this bad release. I'll make a new release soon. In the mean time, you can remove functions-framework as a dependency in your package.json when you deploy to GCF. I think it will fix this issue.

@hdp617 hdp617 closed this as completed Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants