Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0 #159

Closed
twilson90 opened this issue Sep 20, 2024 · 2 comments · Fixed by #166
Closed

Comments

@twilson90
Copy link

Whenever I use rollup with this plugin I get 2 identical warnings in the output:

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
@claycarpenter
Copy link

This warning can be silenced by adding silenceDeprecations: ['legacy-js-api'] to your options property.

The full sass call would then look something like:

sass({
  // ...you existing configuration
  
  options: {
    silenceDeprecations: ['legacy-js-api'],
  },
})

This works fine for me and silences the warning until root issue can be resolved.

@twilson90
Copy link
Author

This warning can be silenced by adding silenceDeprecations: ['legacy-js-api'] to your options property.

The full sass call would then look something like:

sass({
  // ...you existing configuration
  
  options: {
    silenceDeprecations: ['legacy-js-api'],
  },
})

This works fine for me and silences the warning until root issue can be resolved.

Not working for me :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants