iceqing / react-amis-admin

一个开箱可用的Amis + React 低代码开发环境
https://amis.iceq.cc
Apache License 2.0
149 stars 28 forks source link

Error after npm run dev #27

Closed abasse closed 1 year ago

abasse commented 1 year ago

I receive following error in the browser console after running: npm i npm run dev

image

It is also not possible to run a form in debug mode:

`import schema2component from "@/utils/schema2component";

const schema = { "type": "page", "body": { "type": "form", "title": "用户信息", "debug": true, "debugConfig": { "enableClipboard": true, "displayDataTypes": true }, "body": [ { "type": "input-text", "name": "name", "label": "姓名" }, { "type": "input-email", "name": "email", "label": "邮箱" } ] } }

export default schema2component(schema);`

image
iceqing commented 1 year ago

It might be an issue with amis. Rolling back to 3.2.0 made it work normally. I've already rolled back the code in the vite branch.

可能是amis的问题,amis退回到3.2.0就正常了,我已经在vite分支回滚了代码

iceqing commented 1 year ago

https://github.com/baidu/amis/issues/8119

abasse commented 1 year ago

Thanks, I rolled back to 3.2.0 and the code works as expected. Thanks for the prompt response!