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

TypeError: Cannot read properties of undefined (reading 'apply') #10268

Open
citynook opened this issue May 20, 2024 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading 'apply') #10268

citynook opened this issue May 20, 2024 · 0 comments

Comments

@citynook
Copy link

citynook commented May 20, 2024

描述问题:

项目为vite3 + vue3,引用了 veaury 插件将 amis editor 引入到 Vue3 项目中使用,在弹出窗口中显示 amis 编辑器。

截止到6.3.0版本,使用过程还都正常,在升级到6.4.0和6.4.1版本后,关闭对话框时就会报错,降级回 6.3.0 版本后错误消息。

我不清楚是 veaury 的问题还是 amis editor 的问题,但至少 6.3.0 版本运行是正常的,所以在 veaury 里提交了 issue后,也在此提交了issue,希望可以找是哪方面的原因造成的,能否修复这个问题。

初步debug,感觉是removeCustomStyle的问题。

截图或视频:

image
image

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

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

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

  3. 粘贴有问题的完整 amis schema 代码:
    代码仓库:https://github.com/citynook/amiseditor-vue

  4. 操作步骤
    4.1 执行 npm install --legacy-peer-deps 安装依赖
    4.2 执行npm run dev启动项目,用谷歌浏览器进入主页面,按F12打开开发工具
    4.3 点击【Open Editor】按钮弹出 Amis 编辑对话框
    4.4 关闭对话框,此时控制台会输出错误信息

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

1 participant