Closed mmdsharifi closed 8 years ago
This doesn't happen with vanilla v4-dev
. Presumably your error is caused by you overriding one of the Sass variable values to something that ends up being nonsensical.
thanks alot , but how to install this package v4-dev
form bower?
Please ask how-to questions on StackOverflow, IRC, or Slack, rather than this bug tracker. Thanks!
Hi @cvrebert
I just got same issue.
feryardiant ~/.../Projek.xyz/Codes/slim-app (master)
[19:36:57] $ gulp styles
[19:43:52] Using gulpfile ~/Workspaces/Projects/Personal/Projek.xyz/Codes/slim-app/gulpfile.js
[19:43:52] Starting 'styles'...
[19:43:53] Finished 'styles' after 772 ms
[19:43:53] gulp-notify: [Error running Gulp] Error in plugin 'gulp-sass'
Message:
res/vendor/bootstrap/scss/_popover.scss
Error:
Incompatible units:
'rem/px' and 'rem'.
on line 112 of res/vendor/bootstrap/scss/_popover.scss
>> @include border-radius(($border-radius-lg - $offset-border-width) ($border-r
--------------------------^
I'm using gulp-sass
and twbs-bootstrap4-alpha2
installed via bower.
Here my gulp config.
// some scripts
var sassConfig = {
precision: 6,
indentedSyntax: false,
sourceComments: false
}
gulp.task('styles', function () {
gulp.src(paths.src)
.pipe(sourcemaps.init())
.pipe(sass(sassConfig))
.pipe(autoprefixer(autoprefixerConfig))
.pipe(csscomb())
.pipe(sourcemaps.write())
.pipe(gulp.dest(paths.dest))
return gulp.src(paths.src)
.pipe(cssmin())
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest(paths.dest))
.pipe(browserSync.reload({ stream: true }))
})
And.
Presumably your error is caused by you overriding one of the Sass variable values
yes, I override some default variable including $border-radius-lg
, I've tried to remove my overrides but still no luck.
Any clue?
Thanks
@feryardiant Please ask personal support questions on StackOverflow, IRC, or Slack.
Hi, when I try run gulp command to compile sass files , this is result: _Error: Incompatible units: 'rem' and 'px'. _
and here is my codes : https://github.com/mmdsharifi/Bootstrap4-RTL