Skip to main content
Question

Getting blank screen running expo metro web Uncaught Error Related to RevenueCat


yavuzakyazici
Forum|alt.badge.img+5

Hello,

I have an Expo app running on iOS successfully for sometime. I wanted to add Expo Metro Web but I keep getting blank screen. I think it is because of an uncaught error. Google Chrome Console says…

 

Uncaught Error: The package 'react-native-purchases-ui' doesn't seem to be linked. Make sure: 

- You rebuilt the app after installing the package
- You are not using Expo Go

Does anybody know how I can resolve this?

Thanks..

2 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 254 replies
  • March 19, 2025

@yavuzakyazici The react-native-purchases-ui package doesn’t support web, as we don’t (yet) have web paywalls. For web, you can use our web SDK for fetching customer info and making purchases, but paywalls aren’t yet supported.


yavuzakyazici
Forum|alt.badge.img+5

I also get metatada warnings building expo eas locally. Is it related as well?

And also… If I put a flag for checking Platform, like below

 const configurePurchases = async () => {
    if (Platform.OS === "ios") {
      Purchases.configure({ apiKey: process.env.EXPO_PUBLIC_RC_IOS });
    }
    if (Platform.OS === "android") {
      Purchases.configure({ apiKey: process.env.EXPO_PUBLIC_RC_ANDROID });
    }
  };
if (Platform.OS !== 'web') configurePurchases();

Would I still get the error? 
I guess I would also need this flag everywhere I check for subscription and paywalls.
Actually, I should may be check platform before I create revenuecat functions?
Or even… do conditional imports.
Would that work?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings