bersling
bersling

Reputation: 19242

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: 397

Answers (1)

bersling
bersling

Reputation: 19242

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