bersling
bersling

Reputation: 19302

GCloud Functions: load error: File ./dist/index.js that is expected to define function doesn't exist

When trying to deploy to google cloud functions I get the response

load error: File ./dist/index.js that is expected to define function doesn't exist

Why is that?

Upvotes: 3

Views: 400

Answers (1)

bersling
bersling

Reputation: 19302

It didn't upload my dist folder, because that was gitignored. In .gcloudignore I could remove the addition of gitignore by deleting #!include:.gitignore from the file.

Upvotes: 5

Related Questions