Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase cloud functions Property 'runWith' does not exist on type 'typeof... #1654

Closed
cabljac opened this issue Dec 17, 2024 · 1 comment
Closed

Comments

@cabljac
Copy link

cabljac commented Dec 17, 2024

Opening this issue to track something mentioned in a comment on another issue by @tomchify:

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.x
import * as functions from 'firebase-functions/v1';

// Function using region() and runWith()
export const processUserData = functions
  .runWith({
    memory: '256MB',
    timeoutSeconds: 60
  })
  .https.onRequest(async (req, res) => {
    // Function implementation
    res.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.

@cabljac
Copy link
Author

cabljac commented Dec 17, 2024

closing as duplicate of #1616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant