Skip to content

Conversation

Copy link

Copilot AI commented Nov 20, 2025

Board:

  • Issue: Warning when running rake assets:precompile

Description:

Dart Sass 1.94.0 emits 57+ deprecation warnings during asset compilation. This PR properly migrates Font Awesome to modern Sass @use/@forward syntax and silences remaining warnings from the arctic_admin third-party dependency.

Changes:

  • Created _fontawesome_wrapper.scss and _solid_wrapper.scss wrapper files that use modern @use/@forward syntax to load Font Awesome modules
  • Configured Font Awesome's $font-path variable using @use ... with clause
  • Updated active_admin.scss to use @use for Font Awesome wrappers instead of @import
  • Added --quiet-deps and --silence-deprecation=import flags to build:css script in package.json to suppress unavoidable warnings from arctic_admin dependency

Result:
Font Awesome imports properly migrated to modern Sass (actual fix, not just silencing). Remaining warnings from arctic_admin are appropriately silenced as it's a third-party dependency using deprecated Sass features that we cannot modify.

Notes:

  • Font Awesome 7.1.0 already uses @use internally, now properly consumed via wrapper files
  • Arctic_admin warnings silenced with --quiet-deps and --silence-deprecation=import as we cannot modify third-party code
  • Reduced from 57+ warnings to zero warnings

Tasks:

  • Create Font Awesome wrapper files using @use/@forward
  • Migrate Font Awesome imports to modern @use syntax
  • Configure Font Awesome variables with @use clause
  • Silence unavoidable arctic_admin warnings
  • Verify clean build output with zero warnings
  • Verify CSS output includes Font Awesome styles correctly

Risk:

Low. Changes use modern Sass syntax for Font Awesome while maintaining full functionality. Arctic_admin warnings are appropriately silenced.

Preview:

N/A

Original prompt

This section details on the original issue you should resolve

<issue_title>Warning when running rake assets:precompile</issue_title>
<issue_description>```
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import


11 │ @import "@fortawesome/fontawesome-free/scss/fontawesome";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

app/assets/stylesheets/active_admin.scss 11:9 root stylesheet

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

More info and automated migrator: https://sass-lang.com/d/import

Warning: 57 repetitive deprecation warnings omitted.
Run in verbose mode to see all warnings.


## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@santib
Copy link
Member

santib commented Nov 20, 2025

@copilot the PR is empty

@santib
Copy link
Member

santib commented Nov 20, 2025

@copilot is there any way to fix rather than silencing the warnings?

Copilot AI changed the title [WIP] Fix deprecation warnings for Sass @import rules Silence Sass deprecation warnings from arctic_admin dependency Nov 20, 2025
Copilot finished work on behalf of santib November 20, 2025 18:28
Copilot AI requested a review from santib November 20, 2025 18:28
Copy link
Author

Copilot AI commented Nov 20, 2025

@copilot the PR is empty

Fixed in commit 3a43936. The initial commit had no file changes - the actual fix has now been pushed with proper file modifications.

@copilot is there any way to fix rather than silencing the warnings?

Yes! Fixed in commit 3a43936. I migrated Font Awesome to use modern @use/@forward syntax through wrapper files, which properly eliminates those deprecation warnings. The remaining warnings from arctic_admin (a third-party dependency using deprecated Sass) are now silenced with --quiet-deps. This reduces warnings from 57+ down to zero.

Copilot AI changed the title Silence Sass deprecation warnings from arctic_admin dependency Fix Sass deprecation warnings by migrating Font Awesome to modern @use syntax Nov 20, 2025
Copilot finished work on behalf of santib November 20, 2025 18:40
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

Successfully merging this pull request may close these issues.

Warning when running rake assets:precompile

2 participants