-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Sentry.init() with @sentry/[email protected] causes application to hang and not render #634
Comments
….1 to mitigate bug - ref: getsentry/sentry-capacitor#634
Hi @TheQueenIsDead and thank you for the repro!, we'll investigate this and give you an awnser shortly! |
Thanks for the speedy response! Interestingly I tried downgrading, and managed to get my dev instance working, but I think I had mismatched packages versions between capcitor and react, such that my project couldn't build via CI
I think this was due to me not changing the react version to the exact peer dependency version specified by capacitor, however it did allow my project to build momentarily after vite hot-reloaded my dev server. I haven't quite been able to figure out exactly what was in my node_modules folder (or loaded via the browser) at the time when it did work 😅 Commiting 0.15.0 and the proper peer dependency version yielded the same inability to load unfortunately |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Not stale :-) |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Environment
I have loaded my app in a vite dev server, as well as deploying a preview app using a prod build (web) and have had the same bug in Chrome (124.0.6367.91) and Firefox (125.0.2).
I am using ionic with capacitor, backed by react and vite in typescript. The dependecies are as follows, and the package.json at the time of writing this bug can be found on a feature branch of a side-project I'm developing:
https://github.com/TheQueenIsDead/loot-logger/tree/4e66af464d53f43f5ca0a6283d15a603630d77be
package.json
Steps to Reproduce
app/src/main.tsx
file has the following contents:cd app && npm ci
npm run dev
Expected Result
The main login page would render in sub-second time. This screenshot was generated after commenting out the sentry and sentry-react imports, as well as the init
Actual Result
The sentry debug logs look ok, nothing renders immediately, some components pop up after waiting 30s or so.
Here's a Firefox performance capture of the long delay in page load, it seems to indicate that there's deep recursion of some sort when calling
visit
:Potentially related issues
Any help appreciated! Thanks in advance
The text was updated successfully, but these errors were encountered: