Skip to content

Commit bec2341

Browse files
authored
add requirement install correct React version
Following the tutorials with SPFx 1.20, caused it to target 17.0.2 instead of 17.0.1 causing the extension to fail I think the issue of needing to specify the version is known since last year SharePoint#8795
1 parent 5c7e287 commit bec2341

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/spfx/extensions/guidance/using-custom-dialogs-with-spfx.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Tutorial - Use custom dialog boxes with SharePoint Framework Extensions
33
description: Create a custom dialog box and use it within the context of a ListView Command Set extension.
4-
ms.date: 12/13/2021
4+
ms.date: 10/10/2024
55
ms.localizationpriority: high
66
---
77

@@ -40,6 +40,12 @@ You can access the sample code that this article is based on in the [sp-dev-fx-e
4040
npm install office-ui-fabric-react --save
4141
```
4242

43+
1. Install the correct version of React and React-dom indicated in [SPFx development environment compatibility](../../compatibility.md#spfx-development-environment-compatibility).
44+
45+
```console
46+
npm instal [email protected] [email protected] --save-exact
47+
```
48+
4349
1. Open your project folder in your code editor. This article uses Visual Studio Code in the steps and screenshots, but you can use any editor that you prefer. To open the folder in Visual Studio Code, use the following command in the console:
4450

4551
```console

0 commit comments

Comments
 (0)