-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[JavaScript] React Router (v7) SDK #14519
Comments
hey, im coming from Remix - used @sentry/remix before, but after upgrading to RRv7 there are dependencies which cant be there "react-router-dom" from some remix packages - so would be nice, if the new implementation will also work from former @sentry/remix users. BR |
This probably needs to be a new package, and we also need to write out migration docs about how to go from |
This comment has been minimized.
This comment has been minimized.
Anything I can do to help you guys? |
@AlemTuzlak Not yet, we'll refine this ticket as soon as possible and provide a more detailed roadmap. |
For others finding this before the full v7 framework support is available, here's the guide on how to get it working with the react and node integrations: https://docs.sentry.io/platforms/javascript/guides/react-router/. It was a bit hard for me to find, so sharing here. |
to explain it very fast. if i create your instrument.server.mjs and i need to start up my react router app with --NODE-OPTIONS it breaks my whole application cause the "~" as my import alias is not working anymore. |
@intsanerarity could you provide a reproduction? |
Check out the Epic Stack https://github.com/epicweb-dev/epic-stack |
thanks for this hint man! It worked!!! Finally Sentry again thank you very much! |
Getting these errors, and it is really not clear why, because the value to |
I totally missed it that |
@punkpeye yeah this is not optimal as it is easy to overlook, will try to find a better solution for that! |
Completely overlooked this. It would be great if the documentation highlighted this configuration part. |
Description
This ticket is about supporting React Router v7 as a full meta-framework: https://reactrouter.com/start/framework/installation
This includes full instrumentation for both client and server side.
Overview
We will publish a new package
@sentry/react-router
.To not carry over too much unneeded functionality like rsbuild support, non-otel instrumentation or support for older remix versions we will not build upon
@sentry/remix
and rather treat this as new SDK with the possibility of re-using remix otel instrumentation.The starting point will be instrumenting the framework using
@sentry/node
and@sentry/react
Discussed approach for configuration and entrypoints:
Additional tasks (issue creation tbd)
@sentry/remix
to@sentry/react-router
@sentry/react-router
The text was updated successfully, but these errors were encountered: