rollup-plugin-postcss icon indicating copy to clipboard operation
rollup-plugin-postcss copied to clipboard

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

Open v1kt0r1337 opened this issue 1 year ago • 12 comments

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

I fear this plugin will stop working in the near future. Unfortunately I've not seen any other plugins that are feature rich enough to replace this plugin.

v1kt0r1337 avatar Oct 03 '24 08:10 v1kt0r1337

same worry here :(

MichalGorskiOnegini avatar Oct 18 '24 12:10 MichalGorskiOnegini

Is there an option we can add to set the api? There is one for webpack's sass-loader

mrbinky3000 avatar Oct 21 '24 17:10 mrbinky3000

same issue here

narcecl avatar Oct 24 '24 19:10 narcecl

You can turn off the warnings until this is fixed via:

import postcss from 'rollup-plugin-postcss';

postcss({
    use: {
        sass: {
            silenceDeprecations: ['legacy-js-api'],
        }
    },
})

BryceMehring avatar Nov 01 '24 19:11 BryceMehring

I asked the same question in sass/dart-sass#2352. Someone said I should ask here.

movahhedi avatar Nov 03 '24 09:11 movahhedi

Still not fixed?

WhiteTiburon avatar Mar 10 '25 20:03 WhiteTiburon

what if i dont wanna silence warning but instead opt in to modern api

shriyanskapoor avatar Mar 29 '25 07:03 shriyanskapoor

I have the same warning

bee1an avatar Apr 10 '25 06:04 bee1an

Same problem here.

rafa-br34 avatar Jul 20 '25 05:07 rafa-br34

Bump!

kangzj avatar Jul 31 '25 00:07 kangzj

Would love an update on this one!

pheroMona13 avatar Aug 11 '25 15:08 pheroMona13

Hello. I'm here to follow up on this issue. Seems that this happens on rollup plugin itself; nothing to do on the code side other than silencing the warning.

super-danny avatar Sep 26 '25 17:09 super-danny