Expo managed workflow - crash on web
See original GitHub issueDescribe 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:
- Create new expo managed workflow project
expo install @stripe/stripe-react-native
- import stripe dependencies into component
- expo start --web
- 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:
- Created a year ago
- Reactions:1
- Comments:12
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
No. All the errors were introduced when I added the Stripe library.