Topic: Compilation error
Expected behavior no compiling errors
Actual behavior
Change Detected...
Compilation Error
Error: required parameters must precede optional parameters on line 10 of sass/c:\laragon\www\project_name\node_modules\mdb-ui-kit\src\mdb\scss\free\mixins_buttons.scss
$shadow, --^
Watching...
Resources (screenshots, code snippets etc.)
stefanvd pro premium priority answered 2 years ago
Addition
I was able to solve the above issue by migrating the live sass compiler to new edition.
Now there is this less critical notification (see below). Nevertheless I would like to know what this means, is this something that should be adjusted in the mdb core files - maybe with a future update?
Warning: $weight: Passing a number without unit % (100) is deprecated.
To preserve current behavior: $weight * 1%
More info: https://sass-lang.com/d/function-units ╷ 245 | @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100); | ^..................................................................^ ╵ file:///c:/laragon/www/vanmarconl/node_modules/mdb-ui-kit/src/mdb/scss/bootstrap-rtl-fix/_functions.scss:245:10
THIS IS DEPRECATED AND WILL BE REMOVED IN SASS 2.0
Grzegorz Bujański staff commented 2 years ago
Are you sure you are using the latest version of the MDB? In the latest version we have updated the BS version to the latest one where these bugs have been fixed
stefanvd pro premium priority commented 2 years ago
This is my version: $ mdb --version Version: 4.1.0
mlazaru staff commented 2 years ago
run mdb update
to update package to the newest 4.3.0 version, where the error should not occur.
stefanvd pro premium priority answered 2 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.1.0
- Device: desktop
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: No