From e86defb149e71f9a6db1465d9f767a568cf66bae Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Fri, 3 Mar 2023 15:16:02 +0000 Subject: [PATCH] Use namespace import for React This is needed for the import to work in a TypeScript project that does not have `allowSyntheticDefaultImports` enabled. --- packages/react/src/reactrouterv6.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/reactrouterv6.tsx b/packages/react/src/reactrouterv6.tsx index 2f82b8167120..bc917ff12508 100644 --- a/packages/react/src/reactrouterv6.tsx +++ b/packages/react/src/reactrouterv6.tsx @@ -5,7 +5,7 @@ import { WINDOW } from '@sentry/browser'; import type { Transaction, TransactionContext, TransactionSource } from '@sentry/types'; import { getNumberOfUrlSegments, logger } from '@sentry/utils'; import hoistNonReactStatics from 'hoist-non-react-statics'; -import React from 'react'; +import * as React from 'react'; import type { Action,