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

用到其他vue3项目中,打包会出现vue-router.83b62d9d.js:5 TypeError: Cannot destructure property 'type' of 'n' as it is undefined. at jn (milkdown-vue.ad7c0b9c.js:formatted:31851:21) at milkdown-vue.ad7c0b9c.js:formatted:32212:1 #1

Open
blog-xylia opened this issue Jul 27, 2022 · 3 comments

Comments

@blog-xylia
Copy link

本地可以用,是好的,打包后线上会这样,不知道什么原因,急需解决。
image

@blog-xylia
Copy link
Author

作者有没有存在这种类似问题,点进去也看不出是哪里的问题。万分感谢。

@cyyjs
Copy link
Owner

cyyjs commented Jul 28, 2022

经过排查发现是@milkdown/plugin-math这个插件引起的bug,目前先暂时在新版本中v1.0.2中去掉了这个插件的引入,待此插件修复后再考虑接入。

@blog-xylia
Copy link
Author

blog-xylia commented Jul 28, 2022

你好,再看几个比较明显发现的问题,

1、只读模式下的斜杠处点击会出现下拉菜单。

797c8c0901ce909a37970a4fb2fd2ae
2、链接处输入数值,会出现光标往前漂
bbdbf9fcd4e0399d9d48f8ad8506d4c
3、大纲如果标题一样,获取的数组id会是一样,后面做自定义大纲,定位不唯一,会有问题。
4、此项目在修改编辑器相关逻辑代码时候。重新编译后,页面会直接卡顿死了。

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