Skip to content

[🐛] Module '"@react-native-firebase/app-check"' has no exported member 'ReactNativeFirebaseAppCheckProvider' #8512

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

Open
fracico-tech opened this issue May 3, 2025 · 6 comments
Labels

Comments

@fracico-tech
Copy link

I'm trying to configure app check as documented, but when I import it I have the typescript error:
Module '"@react-native-firebase/app-check"' has no exported member 'ReactNativeFirebaseAppCheckProvider'. Did you mean to use 'import ReactNativeFirebaseAppCheckProvider from "@react-native-firebase/app-check"' instead?ts(2614)

It's only a typescript error, because the feature works as expected

  • react-native-firebase version you're using that has this issue:
    • 21.14.0
  • Firebase module(s) you're using that has the issue:
    • AppCheck
  • Are you using TypeScript?
    • Y & 5.0.4

@lasfito
Copy link

lasfito commented May 4, 2025

not sure if related, but just today when updating i got a similar error for app-check

✖ Prebuild failed
Error: [ios.dangerous]: withIosDangerousBaseMod: Cannot add Firebase code to AppDelegate of language "swift"
Error: [ios.dangerous]: withIosDangerousBaseMod: Cannot add Firebase code to AppDelegate of language "swift"
npx expo prebuild --no-install --platform ios exited with non-zero code: 1

@mikehardy
Copy link
Collaborator

@lasfito - not related, I believe the app-check Expo config plugin hasn't been updated to handle Expo 53 / Swift yet

@fracico-tech please include the actual code you wrote that has issues - plus versions etc - you've asked for help but deleted the template where we request the information we need to help, makes it difficult...

@anudit
Copy link

anudit commented May 6, 2025

@mikehardy @lasfito Getting this too on [email protected], [email protected] and @react-native-firebase/app@^22.1.0, @react-native-firebase/app-check@^22.1.0, probably an expo issue?

✖ Prebuild failed
Error: [ios.dangerous]: withIosDangerousBaseMod: Cannot add Firebase code to AppDelegate of language "swift"
    at modifyAppDelegateAsync (/Users/anudit/Documents/GitHub/app/node_modules/@react-native-firebase/app-check/plugin/build/ios/appDelegate.js:69:15)
    at /Users/anudit/Documents/GitHub/app/node_modules/@react-native-firebase/app-check/plugin/build/ios/appDelegate.js:77:19
    at action (/Users/anudit/Documents/GitHub/app/node_modules/@expo/config-plugins/build/plugins/withMod.js:199:29)
    at interceptingMod (/Users/anudit/Documents/GitHub/app/node_modules/@expo/config-plugins/build/plugins/withMod.js:104:27)
    at action (/Users/anudit/Documents/GitHub/app/node_modules/@expo/config-plugins/build/plugins/withMod.js:204:14)
    at async interceptingMod (/Users/anudit/Documents/GitHub/app/node_modules/@expo/config-plugins/build/plugins/withMod.js:104:21)

@mikehardy
Copy link
Collaborator

There has been no PR yet for swift support for app check plugin yet, I expect it won't work until there is. Historically these Expo updates have been community driven but I merge and release them very quickly, with gratitude

@anudit
Copy link

anudit commented May 8, 2025

@mikehardy looks like @jeremyplt made a pr for this #8521

@fracico-tech
Copy link
Author

@mikehardy I really apology for not adding any example, I thought it was already exhaustive.
I have used the same code in the documentation

import {ReactNativeFirebaseAppCheckProvider} from '@react-native-firebase/app-check';

this import trigger the ts error: Module '"@react-native-firebase/app-check"' has no exported member 'ReactNativeFirebaseAppCheckProvider'. Did you mean to use 'import ReactNativeFirebaseAppCheckProvider from "@react-native-firebase/app-check"' instead?

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

No branches or pull requests

4 participants