Deprecation Warning: legacy JS API is deprecated and will be removed in Dart Sass 2.0.0
during invenio-cli install
#2870
Labels
bug
Something isn't working
javascript
Pull requests that update Javascript code
stale
No activity for more than 60 days.
Package version (if known): v12
Describe the bug
When running
invenio-cli install
, a deprecation warning appears related to the legacy JS API used in Sass. The warning indicates that the legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. This may affect future compatibility.Steps to Reproduce
Expected behavior
No deprecation warnings should appear during the install process,
Logs
Details
Additional context
Looks like the deprecation of the legacy JavaScript API in Dart Sass, which is being used through the sass-loader here:
https://github.com/inveniosoftware/invenio-assets/blob/d68d1753c5649e487235de048d26cec4d1241d4b/invenio_assets/assets/build/webpack.config.js#L144
In the version 1.3.0 release on 2022-06-19, it's noted that "Replaces the deprecated NPM dependency node-sass with dart-sass," but I can't find any reference to this in the code.
https://github.com/inveniosoftware/invenio-assets/blob/master/invenio_assets/assets/package.json#L55-L56
inveniosoftware/invenio-assets@c8ce5b7
Possible solutions:
Replace
node-sass
withdart-sass
? invenio-assets#144The text was updated successfully, but these errors were encountered: