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

v3.0.0 throws firebase-admin import error of @firebase/database-compat/standalone #195

Closed
igorgarbuz opened this issue Mar 1, 2023 · 3 comments
Assignees
Labels
type: bug Something isn't working

Comments

@igorgarbuz
Copy link

igorgarbuz commented Mar 1, 2023

Version info

firebase-functions-test: 3.0.0

firebase-functions: 4.2.1

firebase-admin: 11.5.0

jest: 29.2.1

typescript: 4.9.3

Test case

Testing a firebase function.
After an update to the firebase-functions-test v3 and firebase-functions v4 and running a test file with jest there is an error:

  ● Test suite failed to run

    Cannot find module '@firebase/database-compat/standalone' from '../../node_modules/firebase-admin/lib/database/index.js'

    Require stack:
      /Users/igor/Dev/vogel_database/node_modules/firebase-admin/lib/database/index.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/common/providers/database.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/v1/providers/database.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/v1/index.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/v1.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/main.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/features.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/index.js
      path/to/test/file.test.ts

Steps to reproduce

Install libraries with versions provided above. Run a jest test.

Expected behavior

Test runs without the error provided above.

Actual behavior

An error on @firebase/database-compat/standalone

@CorieW
Copy link

CorieW commented Dec 20, 2024

Hey @igorgarbuz

Are you able to confirm whether this still occurs with the latest version?

@CorieW CorieW added the Needs: Author Feedback Issues awaiting author feedback label Dec 20, 2024
@igorgarbuz
Copy link
Author

Sorry, cannot re-test as we had to change our testing strategy and the library is not used any more.

@CorieW CorieW added type: bug Something isn't working and removed Needs: Author Feedback Issues awaiting author feedback labels Feb 19, 2025
@CorieW CorieW self-assigned this Feb 20, 2025
@CorieW
Copy link

CorieW commented Feb 20, 2025

I couldn't reproduce this issue using the latest versions, so I'll close it for now. If you encounter this issue again in the future, feel free to reopen the issue.

@CorieW CorieW closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants