Angular8 firebase configuration error '@angular/fire/angularfire2'

后端 未结 2 700
猫巷女王i
猫巷女王i 2021-02-05 02:11

When trying to \'ng serve\' after configuring angular with firebase, I got the error. Even though I googled this error message but could not find anything. In the error message,

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 02:48

    This error is due to TypeScript type checking the definitions file of the AngularFire library.

    Notice the errors are from node_modules/@angular/fire/angularfire2.d.ts:37:49.

    To avoid this error you have to set some options in tsconfig.json.

    tsconfig:

    {
      //...
      compilerOptions: {
        "skipLibCheck": true,
        //...
      }
    }
    

    skipLibCheck: Skip type checking of declaration files.

    More info on the skipLibCheck option.

提交回复
热议问题