esbuild-sass-plugin
esbuild-sass-plugin copied to clipboard
WARNING: Error logging while running loader
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
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.
Thank you @dungjk This warning apears from 1.79 of sass, and I use [email protected]
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