Stanislau Buzunko
Stanislau Buzunko

Reputation: 1831

functions.runWith is not a function using firebase cloud functions when deploying

Got this error when trying to deploy functions with runWith option

functions.runWith({ memory: '1GB' })

Upvotes: 1

Views: 2032

Answers (1)

Stanislau Buzunko
Stanislau Buzunko

Reputation: 1831

Turns out at least version 2.0.1 of firebase-functions is required.

to fix this

npm i firebase-functions@latest
npm i firebase-admin@latest

Keep in mind 2.x.x introduces some breaking changes.

Upvotes: 3

Related Questions