2024-10-11 乐帮网
vuejs nodejs ui
最近在学习Vuetify的使用,接触到了lux-ui,它是一个很棒的教材,集成了众多现有工具,记录一下遇到的错误:
X [ERROR] Could not resolve "@tiptap/extension-text-style"
node_modules/@tiptap/extension-ordered-list/dist/index.js:3:26:
3 │ import { TextStyle } from '@tiptap/extension-text-style';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@tiptap/extension-text-style" as external to exclude it from the bundle,
which will remove this error and leave the unresolved path in the bundle.
X [ERROR] Could not resolve "@tiptap/extension-text-style"
node_modules/@tiptap/extension-bullet-list/dist/index.js:3:26:
3 │ import { TextStyle } from '@tiptap/extension-text-style';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@tiptap/extension-text-style" as external to exclude it from the bundle,
which will remove this error and leave the unresolved path in the bundle.
看字体意思是丢失了引用模块,在这里:
import { TextStyle } from '@tiptap/extension-text-style';
我们只需要引用相应的模块就可以解决了。可以在package.json文件中添加如下行来解决:
"@tiptap/extension-text": "^2.8.0",
"@tiptap/extension-text-style": "^2.8.0",
添加引用后别忘记下载相应的模块。
关注我的微信公众号
在公众号里留言交流
投稿邮箱:1052839972@qq.com
庭院深深深几许?杨柳堆烟,帘幕无重数。
玉勒雕鞍游冶处,楼高不见章台路。
雨横风狂三月暮。门掩黄昏,无计留春住。
泪眼问花花不语,乱红飞过秋千去。
如果感觉对您有帮助
欢迎向作者提供捐赠
这将是创作的最大动力