You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This SDK is considered ⚠️ **experimental and in an alpha state**. It may experience breaking changes. Please reach out
14
-
on [GitHub](https://github.com/getsentry/sentry-javascript/issues/) if you have any feedback or concerns. This
15
-
SDK is for [React Router (framework)](https://reactrouter.com/start/framework/installation). If you're using [React Router (library)](https://reactrouter.com/start/library/installation) see our
> This SDK is considered ⚠️ **experimental and in an alpha state**. It may experience breaking changes. Please reach out
15
+
> on [GitHub](https://github.com/getsentry/sentry-javascript/issues/) if you have any feedback or concerns. This
16
+
> SDK is for [React Router (framework)](https://reactrouter.com/start/framework/installation). If you're using [React Router (library)](https://reactrouter.com/start/library/installation) see our
// React Router may abort some interrupted requests, report those
126
+
if (!request.signal.aborted) {
127
+
Sentry.captureException(error);
128
+
129
+
// make sure to still log the error so you can see it
130
+
console.error(error);
131
+
}
132
+
};
133
+
// ... rest of your server entry
134
+
```
135
+
136
+
### Update Scripts
137
+
138
+
Since React Router is running in ESM mode, you need to use the `--import` command line options to load our server-side instrumentation module before the application starts.
139
+
Update the `start` and `dev` script to include the instrumentation file:
0 commit comments