Skip to content

Commit 584c4cb

Browse files
authored
ref(react): Improve React Router v6 error message (#5853)
1 parent e242ee6 commit 584c4cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react/src/reactrouterv6.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ export function withSentryReactRouterV6Routing<P extends Record<string, any>, R
190190
!_customStartTransaction
191191
) {
192192
__DEBUG_BUILD__ &&
193-
logger.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.');
193+
logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
194+
useEffect: ${_useEffect}. useLocation: ${_useLocation}. useNavigationType: ${_useNavigationType}.
195+
createRoutesFromChildren: ${_createRoutesFromChildren}. matchRoutes: ${_matchRoutes}. customStartTransaction: ${_customStartTransaction}.`);
194196

195197
return Routes;
196198
}

0 commit comments

Comments
 (0)