diff --git a/packages/remix/src/performance/client.tsx b/packages/remix/src/performance/client.tsx index 0f88a67c2592..879c93e51f42 100644 --- a/packages/remix/src/performance/client.tsx +++ b/packages/remix/src/performance/client.tsx @@ -1,7 +1,7 @@ -import type { ErrorBoundaryProps} from '@sentry/react'; +import type { ErrorBoundaryProps } from '@sentry/react'; import { WINDOW, withErrorBoundary } from '@sentry/react'; import type { Transaction, TransactionContext } from '@sentry/types'; -import { logger } from '@sentry/utils'; +import { isNodeEnv, logger } from '@sentry/utils'; import * as React from 'react'; const DEFAULT_TAGS = { @@ -101,6 +101,7 @@ export function withSentry

, R extends React.FC // Early return when any of the required functions is not available. if (!_useEffect || !_useLocation || !_useMatches || !_customStartTransaction) { __DEBUG_BUILD__ && + !isNodeEnv() && logger.warn('Remix SDK was unable to wrap your root because of one or more missing parameters.'); // @ts-ignore Setting more specific React Component typing for `R` generic above