弹框报错:[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component,
描述问题:
用官网的例子做的dialog,一点击就报错。
sdk.js:1202 [mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[t.render()]' Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ig (sdk.js:983)
at Object.enqueueForceUpdate (sdk.js:886)
at t.F.forceUpdate (sdk.js:675)
at e.onInvalidate (sdk.js:2162)
at e.runReaction (sdk.js:1202)
at nt (sdk.js:1202)
at et (sdk.js:1202)
at sdk.js:1202
at Mj (sdk.js:993)
at et (sdk.js:1202)
截图或视频:

如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的?
sdk用的最新的 1.2.0 https://github.com/baidu/amis/blob/gh-pages/sdk.tar.gz -
粘贴有问题的完整
amis schema代码:
let amis = amisRequire('amis/embed');
// 通过替换下面这个配置来生成不同页面
let amisJSON = {
"type": "page",
"body": [
{
"type": "button",
"actionType": "dialog",
"label": "新增",
"icon": "fa fa-plus pull-left",
"className": "m-b-sm",
"primary": true,
"dialog": {
"title": "新增",
"body": {
"type": "form",
"name": "sample-edit-form",
"api": "post:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"body": [
{
"type": "input-text",
"name": "engine",
"label": "Engine",
"required": true
},
{
"type": "divider"
},
{
"type": "input-text",
"name": "browser",
"label": "Browser",
"required": true
},
{
"type": "divider"
},
{
"type": "input-text",
"name": "platform",
"label": "Platform(s)",
"required": true
},
{
"type": "divider"
},
{
"type": "input-text",
"name": "version",
"label": "Engine version"
},
{
"type": "divider"
},
{
"type": "input-text",
"name": "grade",
"label": "CSS grade"
}
]
}
}
}]
};
let amisScoped = amis.embed('#root', amisJSON);
})();
- 操作步骤 打开页面,一点,就报错。然后报16个错误之后,弹窗可以弹出来。。。

最新 master 代码有问题,正要修
。。。那我能下载哪一个可以用的。。。官网的例子现在全是1.2.x的。。。
https://github.com/baidu/amis/releases/tag/1.1.7
用最新的 release 版本
好的,谢谢先。
@2betop 这个bug还有在修吗
这个问题已经 beta 版本修了 预计本周五会发 1.2.1