Reputation: 1831
Got this error when trying to deploy functions with runWith option
functions.runWith({ memory: '1GB' })
Upvotes: 1
Views: 2032
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