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

vertexai-preview Module '"@firebase/app"' has no exported member '_FirebaseService' #3532

Closed
TheBigOx opened this issue May 21, 2024 · 2 comments

Comments

@TheBigOx
Copy link

TheBigOx commented May 21, 2024

Version info

Angular: 17.3.9

Firebase: 13.9.0

AngularFire: 17.1.0

Other (e.g. Ionic/Cordova, Node, browser, operating system): Node.js v16.14.0, Windows 10

How to reproduce these conditions

You can see the error by running the Angular development server with the provided package.json.

Steps to set up and reproduce

Clone the repository or set up a new Angular project.
Install the dependencies using npm install.
Run the development server using ng serve.

No specific data or security rules are required to reproduce the issue.

Debug output

** Errors in the Terminal console **

Error: node_modules/@firebase/vertexai-preview/dist/src/service.d.ts:17:23 - error TS2305: Module '"@firebase/app"' has no exported member '_FirebaseService'.

17 import { FirebaseApp, _FirebaseService } from '@firebase/app';
                         ~~~~~~~~~~~~~~~~

Output from firebase.database().enableLogging(true);

No relevant output from enabling Firebase database logging.

Screenshots

N/A

Expected behavior

The Angular project should compile successfully without any TypeScript errors.

Actual behavior

The project fails to compile with the following error:

Error: node_modules/@firebase/vertexai-preview/dist/src/service.d.ts:17:23 - error TS2305: Module '"@firebase/app"' has no exported member '_FirebaseService'.

17 import { FirebaseApp, _FirebaseService } from '@firebase/app';
                         ~~~~~~~~~~~~~~~~

Additional Information
Here is the content of the package.json:

{
  "dependencies": {
    "@angular/animations": "^17.3.9",
    "@angular/cdk": "^17.3.9",
    "@angular/common": "^17.3.9",
    "@angular/compiler": "^17.3.9",
    "@angular/core": "^17.3.9",
    "@angular/fire": "^17.1.0",
    "@angular/forms": "^17.3.9",
    "@angular/material": "^17.3.9",
    "@angular/platform-browser": "^17.3.9",
    "@angular/platform-browser-dynamic": "^17.3.9",
    "@angular/router": "^17.3.9",
    "clipboard": "^2.0.11",
    "crypto-js": "^4.2.0",
    "emoji-toolkit": "^8.0.0",
    "firebase-tools": "^13.9.0",
    "marked": "^12.0.0",
    "ngx-markdown": "^17.2.1",
    "openai": "^4.47.1",
    "prismjs": "^1.28.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.14.5"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^17.3.7",
    "@angular/cli": "~17.3.7",
    "@angular/compiler-cli": "^17.3.9",
    "@types/crypto-js": "^4.2.2",
    "@types/jasmine": "~4.3.0",
    "jasmine-core": "~4.6.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.2.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~5.4.5"
  }
}
@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@jamesdaniels
Copy link
Member

This should be fixed in the latest version of the Firebase JS SDK, give that an upgrade and let us know if you encounter other issues. We'll work on strict typing tests to make sure we don't slip bugs into the .d.ts files in the future. Thanks for the report

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

No branches or pull requests

3 participants