拉取源码重新打包在项目中使用存在quill-table-up与quill-header-list组件无法使用 #277
Unanswered
HostDay123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
首先是从git@github.com:opentiny/tiny-editor.git克隆项目,安装依赖以及运行均没有问题,并且内部的仿雀语示例运行也正常(quill-table-up与quill-header-list组件也都能使用)。





但是运行项目中packages/fluent-editor/package.json里的"build": "vite build && node scripts/pre-release.cjs",打包后,在本地通过link链接到其他项目使用时,会产生quill-table-up与quill-header-list组件无法使用,具体体现是工具栏中这两个组件的图标不显示,但是鼠标放到那个位置确实有手势变化。
并且在浏览器控制台有警告
通过在源码的packages/fluent-editor/src/modules/toolbar/better-toolbar.ts中增加日志打印
发现仿雀语示例的有内容
而我外部项目使用的为null
`并且我自己项目是全新的vue3+vite项目,只有一个vue页面,该vue页面内容为完全复制的packages/projects/src/views/yuque/YuQue.vue中的内容。
此处我将打包的版本固定在了4.1.0以便区分是不是用到了远程仓库的版本。
先感谢解答!!
Beta Was this translation helpful? Give feedback.
All reactions