Skip to content

@see doesn't recognize sass module references #560

@kdaulton-chwy

Description

@kdaulton-chwy

Issue

Versions: tried 2.5.1 through 2.7.3

When using @see to reference a variable in another module, I receive the following warning:

» [WARNING] Item `set` refers to `settings.$placeholders` from type `function` but this item doesn't exist.

Files to reproduce

_settings.scss

/// Storage for placeholders that exist.
///
/// This variable should not be accessed directly. See the
/// `placeholders-set()` function for adding to the variable. To check
/// if a value exists, see the `placeholders-exists()` function.
///
/// @type List
/// @access private
///
$placeholders: () !default;

_functions.scss

@use 'sass:list';
@use './settings';

/// Add an entry for an existing placeholder.
///
/// @param {String} $name
///   The name of the placeholder without the beginning `%`.
/// @return {Map}
///   Returns the updated placeholder references.
///
/// @see settings.$placeholders
@function set($name) {
  settings.$placeholders: list.append(settings.$placeholders, $name);

  @return settings.$placeholders;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions