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

Error after npm run dev #27

Closed
abasse opened this issue Sep 15, 2023 · 3 comments
Closed

Error after npm run dev #27

abasse opened this issue Sep 15, 2023 · 3 comments

Comments

@abasse
Copy link

abasse commented Sep 15, 2023

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
Copy link
Owner

iceqing commented Sep 15, 2023

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 iceqing closed this as completed Sep 15, 2023
@iceqing
Copy link
Owner

iceqing commented Sep 15, 2023

baidu/amis#8119

@abasse
Copy link
Author

abasse commented Sep 15, 2023

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

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

No branches or pull requests

2 participants