Problem/Motivation
Sass is throwing an error when using rem():
[23:02:19] Starting 'sass'...
sass/abstracts/variables/_units.scss
Error: 2 arguments required, but only 1 was passed.
╷
11 │ $page-margin: rem(20);
│ ^^^^^^^
╵
sass/abstracts/variables/_units.scss 11:15 @import
sass/custom.scss 14:9 root stylesheetSteps to reproduce
Run `gulp sass`
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3381323-6.patch | 892 bytes | dineshkumarbollu |
| #4 | 3381323-3.patch | 478 bytes | dineshkumarbollu |
Comments
Comment #2
jonesui commentedI came across this relevant post on StackOverflow...
https://stackoverflow.com/a/76878307
Comment #3
jonesui commentedI changed the name of the function from rem() to rem-calc() and replaced the instances where it is used.
This cleared up my errors.
Comment #4
dineshkumarbollu commentedprovided patch according to comment#3,please review.
Comment #5
jonesui commented@dineshkumarbollu
Your patch also needs to change the name of the actual function in sass/abstracts/_functions.scss to rem-calc()
Comment #6
dineshkumarbollu commented@JonesUI
Thanks for review, I am providing new patch please review.