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

Deprecation Warning: legacy JS API is deprecated and will be removed in Dart Sass 2.0.0 during invenio-cli install #2870

Open
Samk13 opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code stale No activity for more than 60 days.

Comments

@Samk13
Copy link
Member

Samk13 commented Oct 7, 2024

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

  1. Run invenio-cli install.
  2. Observe the deprecation warning in the terminal output.

Expected behavior

No deprecation warnings should appear during the install process,

Logs

Details
assets by path js/ 6.41 MiB
  assets by path js/*.js 6.32 MiB 115 assets
  assets by path js/skins/ 95.7 KiB
    asset js/skins/ui/oxide/skin.min.css 74.1 KiB [emitted] [from: node_modules/tinymce/skins/ui/oxide/skin.min.css] [copied] [minimized]
    + 2 assets
assets by path fonts/ 6.09 MiB
  assets by path fonts/*.woff2 978 KiB 13 assets
  assets by status 4.56 MiB [big] 12 assets
  + 9 assets
assets by path css/*.css 1.68 MiB
  assets by chunk 1.5 MiB (id hint: vendors)
    asset css/3526.8b670d525d253f8681ac.css 1.46 MiB [emitted] [immutable] [minimized] [big] (id hint: vendors) 1 related asset
    asset css/1995.09313aa4e6693fa4b988.css 45.8 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
  + 10 assets
orphan modules 8.28 MiB (javascript) 6.09 MiB (asset) 10.3 KiB (runtime) [orphan] 1215 modules
runtime modules 7.43 KiB 14 modules
built modules 13.7 MiB (javascript) 2.7 MiB (css/mini-extract) [built]
  modules by path ./node_modules/ 11.3 MiB (javascript) 2.52 MiB (css/mini-extract) 883 modules
  modules by path ./js/ 2.19 MiB 174 modules
  modules by path ./scss/ 450 bytes (javascript) 189 KiB (css/mini-extract) 18 modules
  modules by path ./translations/ 284 KiB 5 modules
  modules by path ./less/invenio_app_rdm/previewer/*.less 50 bytes (javascript) 317 bytes (css/mini-extract)
    ./less/invenio_app_rdm/previewer/iiif_simple.less 50 bytes [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./less/invenio_app_rdm/previewer/iiif_simple.less 317 bytes [built] [code generated]
  modules by path ./templates/ 320 bytes
    ./templates/custom_fields/ lazy ^\.\/.*\.js$ namespace object 160 bytes [built] [code generated]
    ./templates/ eager ^\.\/.*$ namespace object 160 bytes [built] [code generated]
  + 6 modules
  

WARNING in ./scss/invenio_previewer/audio_videojs.scss (./scss/invenio_previewer/audio_videojs.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/audio_videojs.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/audio_videojs.scss

WARNING in ./scss/invenio_previewer/bottom.scss (./scss/invenio_previewer/bottom.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/bottom.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/bottom.scss

WARNING in ./scss/invenio_previewer/pdfjs.scss (./scss/invenio_previewer/pdfjs.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/pdfjs.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/pdfjs.scss

WARNING in ./scss/invenio_previewer/prismjs.scss (./scss/invenio_previewer/prismjs.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/prismjs.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/prismjs.scss

WARNING in ./scss/invenio_previewer/simple_image.scss (./scss/invenio_previewer/simple_image.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/simple_image.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/simple_image.scss

WARNING in ./scss/invenio_previewer/txt.scss (./scss/invenio_previewer/txt.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/txt.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/txt.scss

WARNING in ./scss/invenio_previewer/video_videojs.scss (./scss/invenio_previewer/video_videojs.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/video_videojs.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/video_videojs.scss

WARNING in ./scss/invenio_previewer/zip.scss (./scss/invenio_previewer/zip.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_previewer/zip.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_previewer/zip.scss

WARNING in ./scss/invenio_theme/admin.scss (./scss/invenio_theme/admin.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/invenio_theme/admin.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
ModuleWarning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
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
    at Object.emitWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/webpack/lib/NormalModule.js:696:6)
    at warn (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:146:25)
    at Function.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:125912:16)
    at JSToDartLogger.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:107458:14)
    at DeprecationProcessingLogger0._deprecation_processing$_handleDeprecation$4$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99060:14)
    at DeprecationProcessingLogger0.internalWarn$4$deprecation$span$trace (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:99008:14)
    at Object.WarnForDeprecation_warnForDeprecation0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:29127:15)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20553:19
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._compileStylesheet2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20572:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20525:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object.compileStringAsync0 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:20539:16)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28464:38
    at _wrapJsFunctionForAsync_closure.$protected (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:5011:15)
    at _wrapJsFunctionForAsync_closure.call$2 (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:37820:12)
    at Object._asyncStartSync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:4975:20)
    at Object._renderAsync (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28522:16)
    at StaticClosure.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:28416:11)
    at Object.Primitives_applyFunction (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:2189:30)
    at Object.Function_apply (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:6434:16)
    at _callDartFunctionFast (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8272:16)
    at sass.render (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass/sass.dart.js:8250:18)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:547:22
    at new Promise (<anonymous>)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/utils.js:546:27
    at Object.loader (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/sass-loader/dist/index.js:51:20)
 @ ./scss/invenio_theme/admin.scss

WARNING in css/3526.1f7626e542c1fe2dc843.css
css/3526.1f7626e542c1fe2dc843.css from Css Minimizer plugin
postcss-calc:: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: auto + 5%
^..^ webpack://./less/invenio_app_rdm/theme/elements/container.overrides:112:6
Warning: css/3526.1f7626e542c1fe2dc843.css from Css Minimizer plugin
postcss-calc:: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: auto + 5%
^..^ webpack://./less/invenio_app_rdm/theme/elements/container.overrides:112:6
    at CssMinimizerPlugin.buildWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/css-minimizer-webpack-plugin/dist/index.js:299:26)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/css-minimizer-webpack-plugin/dist/index.js:599:55

WARNING in css/3526.1f7626e542c1fe2dc843.css
css/3526.1f7626e542c1fe2dc843.css from Css Minimizer plugin
postcss-calc:: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: auto + 5%
^..^ webpack://./less/invenio_app_rdm/theme/elements/container.overrides:126:6
Warning: css/3526.1f7626e542c1fe2dc843.css from Css Minimizer plugin
postcss-calc:: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: auto + 5%
^..^ webpack://./less/invenio_app_rdm/theme/elements/container.overrides:126:6
    at CssMinimizerPlugin.buildWarning (/home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/css-minimizer-webpack-plugin/dist/index.js:299:26)
    at /home/user/.pyenv/versions/3.12.6/envs/test-install/var/instance/assets/node_modules/css-minimizer-webpack-plugin/dist/index.js:599:55

webpack 5.95.0 compiled with 11 warnings in 46897 ms
Built webpack project.
Dependencies installed successfully.

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:

  • Upgrade sass-loader and suppress warnings by updating the rule to:
{
  test: /\.(scss|css)$/,
  use: [
    MiniCssExtractPlugin.loader,
    "css-loader",
    {
      loader: "sass-loader",
      options: {
        sassOptions: {
          quietDeps: true,  // Suppresses warnings from dependencies
        },
      },
    },
  ],
},
@Samk13 Samk13 added bug Something isn't working javascript Pull requests that update Javascript code labels Oct 7, 2024
Copy link
Contributor

github-actions bot commented Dec 8, 2024

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code stale No activity for more than 60 days.
Projects
None yet
Development

No branches or pull requests

1 participant