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.inspect
instead of inspect
to avoid deprecatio…
…n warnings Error: - Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use meta.inspect 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:meta` module to use the functions: `@use "sass:meta"` 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 `meta.inspect` instead of `inspect()`: From `inspect(map.get($breakpoints, $breakpoint))` to `meta.inspect(map.get($breakpoints, $breakpoint))`. References: - https://sass-lang.com/d/import - https://sass-lang.com/documentation/modules/meta/#inspect
- Loading branch information