Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sass): use
map.get
instead of map-get
to avoid deprecation wa…
…rnings Error: - Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use map.get instead. Reason: - We are deprecating the global functions now that the module system has been available for several years in sass: modules. While Dart Sass 2.0.0 will be released soon with various smaller breaking changes, we don’t expect to remove Sass @import rules or global built-in functions until Dart Sass 3.0.0, which will be released no sooner than two years after Dart Sass 1.80.0. Solution: - Import the `sass:map` module to use the functions: `@use "sass:map"` You can't do these imports in the main `styles.scss` file, it doesn't work, you must do it in the file you are going to use it in. - Use `map.get` instead of `map-get()`: From `map-get($breakpoints, $breakpoint)` to `map.get($breakpoints, $breakpoint)`. References: - https://sass-lang.com/d/import - https://sass-lang.com/documentation/modules/map/#get
- Loading branch information