Title: Firebase Missing App configuration value: "projectId" (installations/missing-app-config-values) in ReactJs using travis
Tags: reactjs;firebase;github;travis-ci
Question: firebase react app deployment works fine when deployed using the command line. However, I am getting the following error when deployed using Travis.
Below are my configuration files.
.travis.yml
language: node_js
node_js:
- 12.1.0
warnings_are_errors: false
install:
- npm install
script:
- npm run build
deploy:
provider: firebase
skip_cleanup: true
true:
branch: main
token:
secure: ****************************
global:
secure: *****************************
firebase.json
&quot;hosting&quot;: {
&quot;site&quot;: &quot;********&quot;,
&quot;public&quot;: &quot;build&quot;,
&quot;ignore&quot;: [&quot;firebase.json&quot;, &quot;**/.*&quot;, &quot;**/node_modules/**&quot;],
&quot;rewrites&quot;: [
{
&quot;source&quot;: &quot;**&quot;,
&quot;destination&quot;: &quot;/index.html&quot;
}
API_KEY=''
AUTH_DOMAIN=''
PROJECT_ID=''
FIREBASE_STORAGE_BUCKET=''
FIREBASE_MESSAGING_SENDER_ID=''
FIREBASE_APP_ID=''
FIREBASE_DATABASE_URL=''
export const firebaseConfig = {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId:
process.env.FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.FIREBASE_APP_ID,
measurementId: process.env.measurementId
firebaseApp.initializeApp(firebaseConfig);
Comment: Have you set `projectId` in your "firebase.initializeApp({..." section? Could you share this section with demo data?

Comment: @SajibKhan Yeah... I am using .env file and initialize firebaseApp.initializeApp(firebaseConfig);



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:02/08/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<reactjs><firebase><github><travis-ci>', 'Title': 'Firebase Missing App configuration value: "projectId" (installations/missing-app-config-values) in ReactJs using travis', 'ViewCount': 769, 'id': 66094436, 'user_AboutMe': '<p>I love to work in the field of software development. Passionate about developing and maintaining applications that use Python, C++, C, JavaScript, Unix/Linux, design (using UML) and testing.  Expertise in Low latency, high-frequency web applications for analyzing real-time data and reporting dashboards using Flask(Python), Django, JavaScript, Bootstrap.</p>\n', 'user_AccountId': 12175363.0, 'user_DisplayName': 'Aarif1430', 'user_Reputation': 135.0, 'user_Views': 77.0, 'user_id': 8888612.0}}