减少编译器错误:变量@ btn-border-radius-base未定义

时间:2015-11-12 19:36:08

标签: twitter-bootstrap meteor less undefined compiler-warnings

嘿,我是Meteor的新手。我从git克隆了一个应用程序,我正在尝试将其启动并在本地运行,但是我收到了错误:

=> Errors prevented startup:                  

While building the application:
client/lib/custom.bootstrap.less:2046:102: Less compiler error: variable @btn-border-radius-base is undefined

=> Your application has errors. Waiting for file change.

我没有使用Less编译器的经验。当检查该行是否有错误时,我没有看到任何明显错误的行。

.btn {
display: inline-block;
margin-bottom: 0; // For input.btn
font-weight: @btn-font-weight;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none; // Reset unusual Firefox-on-Android default   style; see https://github.com/necolas/normalize.css/issues/214
border: 1px solid transparent;
white-space: nowrap;
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);
.user-select(none);

上面的代码只是我的custom.bootstrap.less文件中的一个片段,因此它可以正确关闭。感谢您的帮助。

0 个答案:

没有答案