Parcourir la source

fix(cli): Install React typings when adding ui extensions

Closes #2857
Michael Bromley il y a 1 an
Parent
commit
94b6dcfd0c

+ 4 - 0
packages/cli/src/commands/add/ui-extensions/add-ui-extensions.ts

@@ -55,6 +55,10 @@ async function addUiExtensions(options?: AddUiExtensionsOptions): Promise<CliCom
                 isDevDependency: true,
                 version,
             },
+            {
+                pkg: '@types/react',
+                isDevDependency: true,
+            },
         ]);
     } catch (e: any) {
         log.error(`Failed to install dependencies: ${e.message as string}.`);