Bug 41327 - `yarn css:build` generates several warnings
Summary: `yarn css:build` generates several warnings
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 38426
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-28 08:50 UTC by Jonathan Druart
Modified: 2026-01-07 19:09 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41327: Silence Sass deprecation warnings (1.07 KB, patch)
2026-01-07 18:02 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41327: Silence Sass deprecation warnings (1.12 KB, patch)
2026-01-07 19:09 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2025-11-28 08:50:04 UTC
Since bug 38426.

Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

Deprecation Warning [color-functions]: saturate() is deprecated. Suggestions:

Deprecation Warning [color-functions]: desaturate() is deprecated. Suggestions:

Deprecation Warning [color-functions]: lighten() is deprecated. Suggestions:

Deprecation Warning [color-functions]: darken() is deprecated. Suggestions:

Deprecation Warning [color-functions]: red() is deprecated. Suggestion:

Deprecation Warning [color-functions]: adjust-hue() is deprecated. Suggestion:
Comment 1 Owen Leonard 2025-12-01 13:56:48 UTC
In KTD? I don't see any errors when I run 'yarn css:build'

The '@import' warning, at least, is something we can't resolve until Bootstrap does.
Comment 2 David Nind 2026-01-07 18:01:15 UTC
Do you have a nodes_module folder in your koha root?

If you remove that, you might see them (or with a yarn build as well)
Comment 3 Owen Leonard 2026-01-07 18:02:17 UTC
Created attachment 191008 [details] [review]
Bug 41327: Silence Sass deprecation warnings

Some warning are about issue we can address (legacy-js-api for
instance), and others we have to wait to be fixed in Bootstrap
(color-functions, global-builtin).

For now I think we should silence these warnings.

To test, apply the patch and run 'yarn build.' There should be no
warnings.

Sponsored-by: Athens County Public Libraries
Comment 4 David Nind 2026-01-07 19:09:22 UTC
Created attachment 191011 [details] [review]
Bug 41327: Silence Sass deprecation warnings

Some warning are about issue we can address (legacy-js-api for
instance), and others we have to wait to be fixed in Bootstrap
(color-functions, global-builtin).

For now I think we should silence these warnings.

To test, apply the patch and run 'yarn build.' There should be no
warnings.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>