Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用了已删除的api 导致在react19 中崩溃 #11361

Open
wangyucode opened this issue Dec 12, 2024 · 1 comment
Open

使用了已删除的api 导致在react19 中崩溃 #11361

wangyucode opened this issue Dec 12, 2024 · 1 comment

Comments

@wangyucode
Copy link
Contributor

描述问题:

兼容react19

截图或视频:

使用了已删除的api 例如findDOMNode导致程序崩溃:

Amis.jsx:5  TypeError: (0 , __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2d$dom$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__.findDOMNode) is not a function
    at FormItemWrap.componentDidMount (Item.js:171:33)

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    npm

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.11.0-beta.0

  3. 粘贴有问题的完整 amis schema 代码:

{
        "type": "radios",
        "label": "radios",
        "options": [
            {
                "label": "OptionA",
                "value": "a"
            },
            {
                "label": "OptionB",
                "value": "b"
            },
            {
                "label": "OptionC",
                "value": "c"
            },
            {
                "label": "OptionD",
                "value": "d"
            }
        ]
    }
  1. 操作步骤
    无法渲染任何formItem
@cxhcmc
Copy link

cxhcmc commented Dec 14, 2024

同样情况

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

No branches or pull requests

2 participants