Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

window.less.modifyVars is not a function at eval #592

Closed
gemini0524 opened this issue Sep 29, 2019 · 3 comments
Closed

window.less.modifyVars is not a function at eval #592

gemini0524 opened this issue Sep 29, 2019 · 3 comments

Comments

@gemini0524
Copy link

版本号:

2.1

问题描述:

系统设置,换风格和主题色后,重新刷新,一直出现正在编译主题!

截图&代码:

展示

WX20190929-190059@2x

友情提示: 未按格式要求发帖,会直接删掉。

@liudonghua123
Copy link
Contributor

我查看源代码,应该是 less.js 还没加载好,然后就开始编译主题,所以报错,相关代码如下

image

image

首次加载时 less.js 还没有加载完成,里面是没有 modifyVars 函数的,这里的判断也有点问题,所以就进入到下面直接使用了,所以报错了。

@liudonghua123
Copy link
Contributor

这个问题和 #530 是相关的,在 #587 中我一并解决了

@zhangdaiscott
Copy link
Member

此问题已经处理,下个版本会发布

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants