Skip to content

Commit 610c68b

Browse files
Merge pull request #35 from Bharathi-4336/master
updated the React samples
2 parents cc5f39a + 164421e commit 610c68b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ npm install
1919
2. Start the development server using gulp
2020

2121
```bash
22-
gulp serve
22+
npm run serve
2323
```
2424

2525
3. Open your web browser and navigate to the specified localhost address to view the samples.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
"@syncfusion/ej2-react-image-editor": "*",
4545
"@syncfusion/ej2-react-multicolumn-combobox": "*",
4646
"@syncfusion/ej2-react-interactive-chat": "*",
47+
"form-data": "^4.0.0",
4748
"react": "18.3.0",
4849
"react-dom": "18.3.0",
4950
"react-router-dom": "6.16.0"
5051
},
5152
"devDependencies": {
5253
"@microsoft/signalr": "7.0.11",
5354
"@types/codemirror": "5.60.10",
55+
"@types/form-data": "^2.5.0",
5456
"@types/history": "4.7.11",
5557
"@types/marked": "5.0.1",
5658
"@types/moment-timezone": "0.5.13",

src/ai-image-editor/stability-ai-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import FormData from 'form-data';
1+
import * as FormData from 'form-data';
22

33
// Search and Replace
44
export async function StabilityAiModel(file: File, prompt: string, searchPrompt: string) {

0 commit comments

Comments
 (0)