Skip to content

Commit 50a7f6e

Browse files
authored
[Bug] Fix unexpected internal error related to 'reactNativeVersionWarnings' (#2005)
Fixes #1998
1 parent f5fe982 commit 50a7f6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/extension/exponent/xdlInterface.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export const getNgrokResolver: () => Promise<XDLPackage.ResolveNgrok> =
5151
export type IUser = XDLPackage.IUser;
5252

5353
export async function configReactNativeVersionWarnings(): Promise<void> {
54-
(await getXDLPackage()).Config.validation.reactNativeVersionWarnings = false;
54+
const xdlPackage = await getXDLPackage();
55+
if (xdlPackage.Config.validation !== undefined) {
56+
xdlPackage.Config.validation.reactNativeVersionWarnings = false;
57+
}
5558
}
5659

5760
export async function attachLoggerStream(

0 commit comments

Comments
 (0)