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

WARNING: Error logging while running loader #187

Open
eAmin opened this issue Oct 8, 2024 · 3 comments
Open

WARNING: Error logging while running loader #187

eAmin opened this issue Oct 8, 2024 · 3 comments

Comments

@eAmin
Copy link

eAmin commented Oct 8, 2024

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

@dungjk
Copy link
Contributor

dungjk commented Oct 11, 2024

Hello @eAmin
I'm using esbuild-sass-plugin@3.3.1 with sass@1.77.8 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.

@eAmin
Copy link
Author

eAmin commented Oct 14, 2024

Thank you @dungjk
This warning apears from 1.79 of sass, and I use sass@1.79.4

@dungjk
Copy link
Contributor

dungjk commented Oct 15, 2024

esbuild-sass-plugin have changed to use sass@1.45.1 and modern API compileString since v2.0.0.
Currently, esbuild-sass-plugin depend on sass@1.71.1 or sass-embedded@1.71.1 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

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

No branches or pull requests

2 participants