question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expo managed workflow - crash on web

See original GitHub issue

Describe the bug Importing dependencies from @stripe/stripe-react-native causes app to crash on Expo managed workflow - web.

To Reproduce Steps to reproduce the behavior:

  1. Create new expo managed workflow project
  2. expo install @stripe/stripe-react-native
  3. import stripe dependencies into component
  4. expo start --web
  5. See errors

Expected behavior No errors unless stripe components are actually used at runtime.

Additional context I’m aware that web isn’t supported, but it would be nice if it would at least build so I could run my app. I don’t plan to render any stripe components in the browser at runtime. Currently I can’t figure out a way to make Webpack exclude this dependency. Any help would be greatly appreciated.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

1reaction
nzhenrycommented, Jun 14, 2022

@olaurendeau I have a workaround for now. I’ve implemented separate application entry points for mobile and web, with a basic dependency injection container to abstract away the platform dependent components. It’s not ideal, but it works.

1reaction
nzhenrycommented, May 4, 2022

No. All the errors were introduced when I added the Stripe library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Expo Documentation
If the error happens very quickly after reloading, your native app will crash. Tracking JavaScript Errors. We recommend using Sentry to track JavaScript...
Read more >
Expo Crashing only on mobile, but works on Web output
I was working on a react native app on snack expo, and the app works fine on the web output viewer, but when...
Read more >
Expo Crash Reporting and Error Tracking - Datadog Docs
Aggregated Expo crash dashboards and attributes; Symbolicated iOS and deobfuscated Android crash reports; Trend analysis with Expo error tracking. In order to ...
Read more >
EAS build works fine in Expo Go an… | Apple Developer Forums
I've been using a managed Expo workflow and recently ran EAS build to ... the app crashes instantly the moment the splash screen...
Read more >
React Native Crash Course | Build a Complete App - YouTube
03:58 A look under the hood of React Native 09:04 Using Expo vs the ... a course, a crash course, an introduction, an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found