Skip to content

[Bug] demo-nextjs-antd #1030

Description

@fabrifls

🙋 SDK Version

1.0.6

📌 Layout

Free layout

💻 Environment

  • Node.js: 22.21.1

📝 Question Description

I’d like to explain what is happening with the Next.js demo. The only thing that was done was downloading the demo from flowgram.ai/apps/demo-nextjs-antd. Then the following commands were executed:

bun install  
bun dev

When opening the browser, I see the following errors:

## Error Type
Console Error

## Error Message
Warning: `value` should not be array when `TreeSelect` is single mode.


    at children (src\editor\nodes\condition\condition-inputs\index.tsx:39:21)
    at eval (src\editor\nodes\condition\condition-inputs\index.tsx:35:13)
    at children (src\editor\nodes\condition\condition-inputs\index.tsx:34:18)
    at ConditionInputs (src\editor\nodes\condition\condition-inputs\index.tsx:31:5)
    at renderForm (src\editor\nodes\condition\form-meta.tsx:16:7)
    at BaseNode (src\editor\components\base-node\index.tsx:28:16)
    at Editor (src\editor\components\editor.tsx:23:9)
    at EditorClient (src\editor\components\editor-client.tsx:26:10)
    at Home (src\app\page.tsx:10:10)

## Code Frame
  37 |                 <FormItem name="if" type="boolean" required={true} labelWidth={40}>
  38 |                   <div style={{ display: 'flex', alignItems: 'center' }}>
> 39 |                     <ConditionRow
     |                     ^
  40 |                       readonly={readonly}
  41 |                       style={{ flexGrow: 1 }}
  42 |                       value={childField.value.value}

Next.js version: 15.5.9 (Webpack)
## Error Type
Console Error

## Error Message
Invalid DOM property `readonly`. Did you mean `readOnly`?


    at input (<anonymous>:null:null)
    at children (src\editor\nodes\condition\condition-inputs\index.tsx:39:21)
    at eval (src\editor\nodes\condition\condition-inputs\index.tsx:35:13)
    at children (src\editor\nodes\condition\condition-inputs\index.tsx:34:18)
    at ConditionInputs (src\editor\nodes\condition\condition-inputs\index.tsx:31:5)
    at renderForm (src\editor\nodes\condition\form-meta.tsx:16:7)
    at BaseNode (src\editor\components\base-node\index.tsx:28:16)
    at Editor (src\editor\components\editor.tsx:23:9)
    at EditorClient (src\editor\components\editor-client.tsx:26:10)
    at Home (src\app\page.tsx:10:10)

## Code Frame
  37 |                 <FormItem name="if" type="boolean" required={true} labelWidth={40}>
  38 |                   <div style={{ display: 'flex', alignItems: 'center' }}>
> 39 |                     <ConditionRow
     |                     ^
  40 |                       readonly={readonly}
  41 |                       style={{ flexGrow: 1 }}
  42 |                       value={childField.value.value}

Next.js version: 15.5.9 (Webpack)
Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions