Skip to content

Sentry Integration causing router to be stuck in pending state after v1.98.3 #3277

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
MTG2000 opened this issue Jan 30, 2025 · 4 comments
Closed

Comments

@MTG2000
Copy link

MTG2000 commented Jan 30, 2025

Which project does this relate to?

Router

Describe the bug

After updating Tanstack Router to 1.98.3 my app stopped working.
It doesn't render any pages or components and doesn't throw any errors. Just blank page & blank console.

Disabling the sentry tanstack router integration make it work again.

I was using v1.91.3 before & it was working with the Sentry integration without problems.

If I open the router dev tools, I will see all the routes stuck in pending state.

Example available on StackBlitz.

Your Example Website or App

https://stackblitz.com/edit/github-pp1nvw-hhnn1f54?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

Try disabling/re-enabling the integrations: [Sentry.tanstackRouterBrowserTracingIntegration(router)], in main.tsx

Expected behavior

Sentry integration with Tanstack Router should work as it was in the previous versions.

Screenshots or Videos

No response

Platform

  • OS: [Linux]
  • Browser: [Chrome]
  • Version: Latest

Additional context

Not sure if it's related or not: #2164

@neoantox
Copy link

I just ran into the same issue and struggled to find the root cause since Sentry isn't enabled in the development environment, making it harder to debug.

For now, I just disabled Sentry tracing integration, and everything works.

@nikolovlazar
Copy link

Mentioned this in the getsentry/sentry-javascript repo. Thanks for reporting this!

@TkDodo
Copy link
Contributor

TkDodo commented Jan 30, 2025

will be fixed in sentry:

@TkDodo TkDodo closed this as completed Jan 30, 2025
@MTG2000
Copy link
Author

MTG2000 commented Jan 30, 2025

That was super quick!
Thanks for your great work 🙏

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

No branches or pull requests

4 participants