Description
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"
}
}