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,
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.