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

Missing firebase-config file? #1

Open
yuancaimaiyi opened this issue May 20, 2024 · 1 comment
Open

Missing firebase-config file? #1

yuancaimaiyi opened this issue May 20, 2024 · 1 comment

Comments

@yuancaimaiyi
Copy link

yuancaimaiyi commented May 20, 2024

@MKaczmarski07 Hi,when I run "npm run build",the following error occurs

Error: src/app/app.module.ts:12:32 - error TS2307: Cannot find module './firebase-config' or its corresponding type declarations.

12 import { firebaseConfig } from './firebase-config;
@MKaczmarski07
Copy link
Owner

Hi, the error you see is due to the fact that I have not placed the firebase configuration file that contains my private API key in the public repository. Firebase in this project is used only for hosting the live version, so all the following lines in src/app/app.module.ts are unnecessary to build the project:
import { initializeApp } from 'firebase/app';
import { firebaseConfig } from './firebase-config';
const app = initializeApp(firebaseConfig);

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

2 participants