Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/remix
SDK Version
7.5.0
Framework Version
7.5.0
Link to Sentry event
https://sentry.io/organizations/netzerorg/performance/trace/7a8e8c962aa242aabb565917ff0c891c/
Steps to Reproduce
import invariant from "tiny-invariant";
export const loader: LoaderFunction = async ({ params }) => {
const user = params["*"];
invariant(user, "user is required");
const user= await getUser({ user: user});
return json({
user,
});
};
Now, navigate to a route where the user does not exist.
Expected Result
Invariant is triggered and thrown and an issue is created in sentry dashboard
Actual Result
Invariant is triggered and thrown, however sentry only receives a transaction and doesn't flag it as an issue.