属性'contentful'在类型'{firebase:{apiKey:string; authDomain:字符串; databaseURL:字符串; projectId:字符串;存储...'

时间:2018-09-24 08:59:22

标签: angular firebase heroku environment-variables firebase-hosting

我正在使用Angular 6 App。尝试使用Firebase时遇到Screenshot的错误

我的 environment.prod.ts

export const environment = {
  firebase: {
    apiKey: "AIzaSyBsUCvL9K9jFLizJdVYHNC0J0mrDGpPH0Y",
    authDomain: "firstproject-d3649.firebaseapp.com",
    databaseURL: "https://firstproject-d3649.firebaseio.com",
    projectId: "firstproject-d3649",
    storageBucket: "",
    messagingSenderId: "569372282502"
  },
  production: true
};

environment.ts

export const environment = {
  production: true,
  contentful: {
    spaceId: 'lq7h6p51uv7a',
    token: '3a6bf1c725672b37d5f7e0671c34ee4c5ebc373901a7d8ade0eeb2812c348445'
  }
  ,
  firebase: {
    apiKey: "AIzaSyBsUCvL9K9jFLizJdVYHNC0J0mrDGpPH0Y",
    authDomain: "firstproject-d3649.firebaseapp.com",
    databaseURL: "https://firstproject-d3649.firebaseio.com",
    projectId: "firstproject-d3649",
    storageBucket: "",
    messagingSenderId: "569372282502"
  }  
};

我也尝试了Stackoverflow Article上建议的解决方案,但没有帮助...

请纠正我哪里出错了.. 在此先感谢

0 个答案:

没有答案