From 6dfeccb26a18482112c45d1f18722a444462e63d Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Wed, 17 Sep 2025 18:00:21 +0700 Subject: [PATCH] fix(plugins/developer-kit): access property from globalThis Prevents "Property '__REACT_DEVTOOLS__' does not exist" on builds without React DevTools. --- .../start/developer-kit/definitions/RDTVersionSetting.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/start/developer-kit/definitions/RDTVersionSetting.tsx b/src/plugins/start/developer-kit/definitions/RDTVersionSetting.tsx index 5c759b9..387264e 100644 --- a/src/plugins/start/developer-kit/definitions/RDTVersionSetting.tsx +++ b/src/plugins/start/developer-kit/definitions/RDTVersionSetting.tsx @@ -11,7 +11,7 @@ const RDTVersionSetting: SettingsItem = CopyableSetting( title: () => 'React DevTools', usePredicate: () => RDTContext.active, }, - () => String(__REACT_DEVTOOLS__!.version), + () => String(globalThis.__REACT_DEVTOOLS__!.version), ) export default RDTVersionSetting