Skip to content

instruction on how to copy firebase configuration object is not clear enought #2

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

Open
franciscof5 opened this issue Feb 7, 2023 · 1 comment

Comments

@franciscof5
Copy link

that must be a simple task, but I cant undertand instruction on how to copy firebase configuration object is not clear enought,
i find something on environment.ts, but I copied the hole google config file without brackets and got:

[ng] Error: src/app/app.module.ts:23:41 - error TS2559: Type '{ project_info: { project_number: string; project_id: string; storage_bucket: string; }; client: { client_info: { mobilesdk_app_id: string; android_client_info: { package_name: string; }; }; oauth_client: { ...; }[]; api_key: { ...; }[]; services: { ...; }; }[]; configuration_version: string; }' has no properties in common with type 'FirebaseOptions'.
[ng]
[ng] 23 AngularFireModule.initializeApp(environment.firebaseConfig),

@franciscof5
Copy link
Author

now I find it, need to create a brand new app in firebase console, select web and in the process copy the content of the preview of the config

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

1 participant