Skip to content

🐛 [BUG] 运行报错 Warning: findDOMNode is deprecated and will be removed in the next major release. #11427

Open
@miguao

Description

🐛 AntDesignPro报错

hook.js:608 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node Error Component Stack
at span ()
at li ()
at ul ()
at div ()
at div ()
at aside ()
at div ()
at Layout ()
at div ()
at window.$RefreshReg$ (Layout.tsx:73:20)
at Suspense ()
at Provider (runtime.tsx:11:28)
at InitialStateProvider (Provider.tsx:8:27)
at Provider (index.tsx:86:26)
at ProviderWrapper (runtime.tsx:9:24)
at AntdProvider (runtime.tsx:31:25)

不管是UmiJS官网下载的还是AntDesignPro官网下载的运行都报错,什么时候解决一下啊。本人nodejs版本:v18.20.5 ,Windows版本:11

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