MKaczmarski07 / 360-Panorama-VR

Angular implementation of 360° Panorama Viewer with VR functions
MIT License
2 stars 3 forks source link

Missing firebase-config file? #1

Open yuancaimaiyi opened 4 months ago

yuancaimaiyi commented 4 months ago

@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 commented 4 months ago

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);