Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find name 'FactorId_2' #3329

Closed
jeremyandes opened this issue Mar 30, 2023 · 6 comments
Closed

Cannot find name 'FactorId_2' #3329

jeremyandes opened this issue Mar 30, 2023 · 6 comments

Comments

@jeremyandes
Copy link

Version info

Angular: ^14.2.12
AngularFire: 7.4.0 || 7.5.0
Firebase: any version

How to reproduce these conditions

Just doing npm i, even when I do rm -rf package-lock.json && rm -rf node_modules && npm i

Debug output

Error: node_modules/@firebase/auth/dist/auth-public.d.ts:3225:23 - error TS2304: Cannot find name 'FactorId_2'.
3225     static FACTOR_ID: FactorId_2;

Screenshot
image

Expected behavior

To compile the app and run it on browser.

Actual behavior

It doesn't compile.

@ricardoHer
Copy link

ricardoHer commented Mar 30, 2023

Facing the same issue here:

Angular: ^15.2.0
AngularFire: ^7.5.0

image

Debug console

index.js:561 
 [webpack-dev-server] ERROR
node_modules/@firebase/auth/dist/auth-public.d.ts:3225:23 - error TS2304: Cannot find name 'FactorId_2'.

3225     static FACTOR_ID: FactorId_2;
                           ~~~~~~~~~~
logger @ index.js:561
(anonymous) @ index.js:730
error @ index.js:180
errors @ index.js:281
(anonymous) @ socket.js:60
client.onmessage @ WebSocketClient.js:50
Show 6 more frames

@jeremyandes
Copy link
Author

This seems to be something about TotpMultiFactorGenerator class types in auth-public.d.ts.
Please check this link: firebase/firebase-js-sdk#7174 (comment)

@ricardoHer
Copy link

Hi @jeremyandes it worked:

image

The build was executed, indeed, I still need to test if the expected functionality is ok. I'll continue with this solution and continue the development.

Thanks a lot!

@jeremyandes
Copy link
Author

jeremyandes commented Mar 31, 2023

@ricardoHer glad it worked to you!

@DimaIgorevich
Copy link

But it require to change package dependency. Because 7.5.0 install only 9.19.0 but hotfix already available in 9.19.1.

@jeremyandes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants