From d772e1689c3ef0bad2866fa39bfa85aa4d7f9bdc Mon Sep 17 00:00:00 2001 From: Agne Lukoseviciute Date: Tue, 9 Nov 2021 11:29:44 -0800 Subject: [PATCH] Allow --useWinUI3 and --experimentalNugetDependency to be used at the same time in react-native-windows-init Ran into this while testing WinAppSDK NuGet locally. I believe since #8064 added the projection NuGet, this check is no longer needed. --- packages/react-native-windows-init/src/Cli.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/react-native-windows-init/src/Cli.ts b/packages/react-native-windows-init/src/Cli.ts index 40758dcf60b..4db333cc407 100644 --- a/packages/react-native-windows-init/src/Cli.ts +++ b/packages/react-native-windows-init/src/Cli.ts @@ -377,14 +377,6 @@ function isProjectUsingYarn(cwd: string): boolean { const useDevMode = !!argv.useDevMode; let version = argv.version; - if (argv.useWinUI3 && argv.experimentalNuGetDependency) { - throw new CodedError( - 'IncompatibleOptions', - "Error: Incompatible options specified. Options '--useWinUI3' and '--experimentalNuGetDependency' are incompatible", - {detail: 'useWinUI3 and experimentalNuGetDependency'}, - ); - } - if (!useDevMode) { if (!version) { const rnVersion = getReactNativeVersion();