DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. #39146
-
When building production JavaScript and CSS bundles I get multiples warnings about Gatsby using the legacy API. Gatsby needs to give us a way to use the modern API, and/or hide the warnings. ⠏ Building HTML renderer More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. ⠧ Building HTML renderer ⠋ Building HTML renderer More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. ⠸ Building HTML renderer More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. ⠼ Building HTML renderer ⠏ Building HTML renderer More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Finally figured this out. Configure as follows in your gatsby-config.js: module.exports = {
...
plugins: [
...
{
resolve: "gatsby-plugin-sass",
options: {
sassOptions: {
api: "modern"
}
}
},
...
]
} |
Beta Was this translation helpful? Give feedback.
That didn't remove the legacy warnings for me, but adding an addtional option did.