You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For others who land here from search, I had a similar error when trying to deploy cloud functions:
firebase cloud functions Property 'runWith' does not exist on type 'typeof...
The import from /v1 change described above helped, but I also had to downgrade firebase-functions to 5.0 from 6.0:
yarn add firebase-functions@^5.0.1
The error occurred with version ^6.0 for me.
Related issues
[REQUIRED] Version info
firebase-functions: 6.0.0
[REQUIRED] Test case
Need to confirm, but i imagine something like:
// Old code working in v5.ximport*asfunctionsfrom'firebase-functions/v1';// Function using region() and runWith()exportconstprocessUserData=functions.runWith({memory: '256MB',timeoutSeconds: 60}).https.onRequest(async(req,res)=>{// Function implementationres.json({status: 'success'});});
[REQUIRED] Steps to reproduce
Try to deploy a function with the above code
[REQUIRED] Expected behavior
the function to deploy without error
[REQUIRED] Actual behavior
firebase cloud functions Property 'runWith' does not exist on type 'typeof...
Were you able to successfully deploy your functions?
No.
The text was updated successfully, but these errors were encountered:
Opening this issue to track something mentioned in a comment on another issue by @tomchify:
Related issues
[REQUIRED] Version info
firebase-functions: 6.0.0
[REQUIRED] Test case
Need to confirm, but i imagine something like:
[REQUIRED] Steps to reproduce
Try to deploy a function with the above code
[REQUIRED] Expected behavior
the function to deploy without error
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
No.
The text was updated successfully, but these errors were encountered: