全局引入了ant-design-vue组件,但是不生效是什么原因? #922
-
clientAppEnhance.js中引入ant-design-vue组件后,.vuepress/components下的组件使用显示不生效,控制台显示Failed to resolve component: a-button clientAppEnhance.js代码
components/Button的代码
config.js配置
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you are using the latest version of vuepress, you could find the |
Beta Was this translation helpful? Give feedback.
-
As the other reply said, plz make sure you follow the latest docs, and follow changelog. |
Beta Was this translation helpful? Give feedback.
If you are using the latest version of vuepress, you could find the
clientAppEnhance.js
has been renamed toclient.js
,the api also has changed.It seems that vuepress works well with antdv.
Here is my demo. https://yzqbugs.github.io/vuepress-bugs/
source code:https://github.com/yzqbugs/vuepress-bugs