Skip to content

Bug: Undefined vars #21051

@erperejildo

Description

@erperejildo

Bug description

I was using 6.7.2:

/*!
 * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license (Commercial License)
 * Copyright 2024 Fonticons, Inc.
 */
// Font Awesome core compile (Web Fonts-based)
// -------------------------

@import 'functions';
@import 'variables';
@import 'mixins';
@import 'core';
@import 'sizing';
@import 'fixed-width';
@import 'list';
@import 'bordered-pulled';
@import 'animated';
@import 'rotated-flipped';
@import 'stacked';
@import 'icons';
@import 'screen-reader';

And upgraded to 7.1.0 (latest):

/*!
 * Font Awesome Pro 7.1.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license (Commercial License)
 * Copyright 2025 Fonticons, Inc.
 */
// Font Awesome core compile (Web Fonts-based)
// -------------------------

@use 'core';
@use 'sizing';
@use 'widths';
@use 'list';
@use 'bordered';
@use 'pulled';
@use 'animated';
@use 'rotated-flipped';
@use 'stacked';
@use 'icons';

If you see, @import 'variables'; is missing

When I try to build now I get this error:

Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Undefined variable.
    ╷
235 │     content: fa-content($var-camera);

This is located in variables.scss: $var-camera: \f030; but I wonder why was this removed.

Reproducible test case

No response

Screenshots

No response

Font Awesome version

v7.1.0

Serving

Self-hosted

Implementation

CSS

Browser and Operating System

Not testing on browser yet, just compiling project

Web bug report checklist

  • I have included a test case because my odds go way up that the team can fix this when I do
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis bug needs to be confirmed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions