Skip to content

[BUG] React19 中Toast中的静态方法报错 #2980

@crudboy

Description

@crudboy

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Toast

Semi Version

2.86.0

Current Behavior

控制台错误报出 import_react_dom14.default.render is not a function错误
降级React到18后正常

Expected Behavior

正常弹出提示

Steps To Reproduce

  1. pnpm create vite@latest demo
  2. pnpm add @douyinfe/semi-ui
  3. pnpm run dev

ReproducibleCode

import { Toast } from '@douyinfe/semi-ui';
function Test() {
Toast.success("测试")
return (
  <div>
  测试
  </div>
  )
}

Environment

- OS:Macos
- browser: chrome

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions