Skip to content

ref(react): Improve React Router v6 error message #5853

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

Merged
merged 2 commits into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/react/src/reactrouterv6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export function withSentryReactRouterV6Routing<P extends Record<string, any>, R
!_customStartTransaction
) {
__DEBUG_BUILD__ &&
logger.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.');
logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
useEffect: ${_useEffect}. useLocation: ${_useLocation}. useNavigationType: ${_useNavigationType}.
createRoutesFromChildren: ${_createRoutesFromChildren}. matchRoutes: ${_matchRoutes}. customStartTransaction: ${_customStartTransaction}.`);

return Routes;
}
Expand Down