Ruby Sass无法编译Bootstrap

发布于 2025-01-27 03:14:18 字数 806 浏览 2 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文