You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile my project & it throws 2 errors
node_modules/@firebase/app-check/dist/app-check-public.d.ts:87:22 - error TS2420: Class 'CustomProvider' incorrectly implements interface 'AppCheckProvider'.
Type 'CustomProvider' is missing the following properties from type'AppCheckProvider': getToken, initialize
node_modules/@firebase/app-check/dist/app-check-public.d.ts:171:22 - error TS2420: Class 'ReCaptchaV3Provider' incorrectly implements interface 'AppCheckProvider'.
Type 'ReCaptchaV3Provider' is missing the following properties from type'AppCheckProvider': getToken, initialize
The source code has the following comments, but the compiler doesn't really care about those.
/* Excluded from this release type: getToken *//* Excluded from this release type: initialize *//* Excluded from this release type: isEqual */
Steps to reproduce:
I started using firebase with Reactfire. I'm using just auth. I'm not using App Check.
Thanks, I will look into fixing the typings errors.
In the meantime, so that you are unblocked, can I ask how you are importing Firebase? When directly using Firebase, there shouldn't be any app check code in the bundle if you didn't import app check, and you only imported auth, but I don't know if Reactfire does anything different.
Asked reactifire to give their input. I guess the TS compiler checks the whole firebase library even if I'm not importing all of the modules.
When I changed skipLibCheck: true it compiles fine (because it doesn't check the lib). But I prefer to keep it on so I will continue to check my dependencies for cases like this.
Environment
Problem
I'm trying to compile my project & it throws 2 errors
The source code has the following comments, but the compiler doesn't really care about those.
Steps to reproduce:
I started using firebase with Reactfire. I'm using just auth. I'm not using App Check.
Relevant Code:
TS config
The text was updated successfully, but these errors were encountered: