Ruby Sass无法编译Bootstrap
我正在使用Ruby 3.1.2p20,Gem 3.3.7,Sass:Ruby Sass 3.7.4并出现问题。我无法编译引导程序,我的bootstrap版本是“ bootstrap-sass”:“^3.3.5”,“ react-bootstrap”:“^0.23.3”,“ react-router-bootstrap”:“^0.18。 1“。我从node_modules \ bootstrap-sass \ Assets \ stylesheets \ bootstrap \ _variables.scs中找到了错误
的错误
错误:“ ... floor(数学”:预期”),“ .div($ grid-gutt ...”之后无效的CSS。 在node_modules/bootstrap-sass/Assets/stylesheets/bootstrap/_variables.scss的第369行上 来自node_modules/bootstrap-sass/Assets/stylesheets/_bootstrap.scss的第8行 来自SRC/样式/全局/库的第2行。Scss 来自./src/styles/app.scss
的第4行
代码的第4行,来自“ _variables.scss”,其具有错误:
$navbar-padding-horizontal: floor(math.div($grid-gutter-width, 2)) !default;
$navbar-padding-vertical: math.div(($navbar-height - $line-height-computed), 2) !default;
I'm using ruby 3.1.2p20, gem 3.3.7, sass: ruby sass 3.7.4 and having a problem. I can't compile the bootstrap, my bootstrap version is "bootstrap-sass": "^3.3.5", "react-bootstrap": "^0.23.3", "react-router-bootstrap": "^0.18.1". I found the error from the node_modules\bootstrap-sass\assets\stylesheets\bootstrap\_variables.scss
The error like this
Error: Invalid CSS after "... floor(math": expected ")", was ".div($grid-gutt..."
on line 369 of node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss
from line 8 of node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss
from line 2 of src/styles/global/libraries.scss
from line 4 of ./src/styles/app.scss
code from "_variables.scss" that having error:
$navbar-padding-horizontal: floor(math.div($grid-gutter-width, 2)) !default;
$navbar-padding-vertical: math.div(($navbar-height - $line-height-computed), 2) !default;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论