esbuild-sass-plugin icon indicating copy to clipboard operation
esbuild-sass-plugin copied to clipboard

WARNING: Error logging while running loader

Open eAmin opened this issue 1 year ago • 3 comments

Hi

I've got this warning:

Error logging while running loader  
Deprecation 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

Is there any option to use "legacy-js-api" or any plan to fix this warning? Thanks in advance

eAmin avatar Oct 08 '24 09:10 eAmin

Hello @eAmin I'm using [email protected] with [email protected] got NO warning message like this. Can you please provide more information of packages you're using?.

You may try to upgrade esbuild-sass-plugin and sass.

dungjk avatar Oct 11 '24 07:10 dungjk

Thank you @dungjk This warning apears from 1.79 of sass, and I use [email protected]

eAmin avatar Oct 14 '24 12:10 eAmin

esbuild-sass-plugin have changed to use [email protected] and modern API compileString since v2.0.0. Currently, esbuild-sass-plugin depend on [email protected] or [email protected] with fully modern API.

I'm pretty sure the warning message may not come from esbuild-sass-plugin. This warnings (legacy-js-api) may come from some processing in build pipeline (custom transform, other plugins...).

You may check the plugins you are using.

  • Ensure you're using latest version of esbuild-sass-plugin.
  • Upgrade sass
  • Check other plugins are using with esbuild

dungjk avatar Oct 15 '24 07:10 dungjk