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

安装到最新版的reco2上会有一些小问题 #10

Open
threeTrave opened this issue Nov 24, 2023 · 1 comment
Open

安装到最新版的reco2上会有一些小问题 #10

threeTrave opened this issue Nov 24, 2023 · 1 comment

Comments

@threeTrave
Copy link

threeTrave commented Nov 24, 2023

首先是需要安装stylus,建议放到npm依赖里。
然后会报错误:
[vite] Internal server error: [stylus] D:/Blog2/node_modules/stylus/lib/functions/index.styl:133:3
129|
130| // lighten by the given amount
131|
132| lighten(color, amount)
133| adjust(color, 'lightness', amount)
----------^
134|
135| // decrease opacity by amount
136|

TypeError: expected rgba or hsla, but got ident:$textColor
at "i" (D:/Blog2/node_modules/@vuepress-reco/vuepress-plugin-kan-ban-niang/bin/KanBanNiang.vue:39:36)
at ".operation" (D:/Blog2/node_modules/@vuepress-reco/vuepress-plugin-kan-ban-niang/bin/KanBanNiang.vue:34:5)
at ".banniang-container" (D:/Blog2/node_modules/@vuepress-reco/vuepress-plugin-kan-ban-niang/bin/KanBanNiang.vue:19:3)
感觉是stylus的语法错误
在D:\Blog2\node_modules@vuepress-reco\vuepress-plugin-kan-ban-niang\bin\index.vue的style标签中所有使用lighten这个stylus函数的位置都会报错,我直接注释掉不用lighten之后就可以了。

@recoluan
Copy link
Member

这个插件还没有适配 2.0

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