Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

@see doesn't recognize sass module references #560

Open
kdaulton-chwy opened this issue Aug 17, 2021 · 0 comments
Open

@see doesn't recognize sass module references #560

kdaulton-chwy opened this issue Aug 17, 2021 · 0 comments

Comments

@kdaulton-chwy
Copy link

kdaulton-chwy commented Aug 17, 2021

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;
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant