Skip to content
This repository was archived by the owner on Sep 29, 2024. It is now read-only.
This repository was archived by the owner on Sep 29, 2024. It is now read-only.

@use , @forward, not working! #140

@k1nxx

Description

@k1nxx

I'm really confused but here is my code!

image
^ This is my folder structure ^

I used some demo code from the scss docs, since my own didn't work nor did the scss one

abstracts/_testing.pcss:

@mixin list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}
autoload.pcss:

@forward 'abstracts/testing.pcss';
style.pcss

@use "autoload.pcss";

li {
  @include autoload.list-reset;
}

My error:

[11:58:16] 'css' errored after 3.09 s
[11:58:16] CssSyntaxError in plugin "gulp-postcss"
Message:
    precss: /mnt/c/xampp/htdocs/social/assets/styles/styles.pcss:4:12: Could not resolve the mixin for "autoload.list-reset"

  2 | 
  3 | li {
> 4 |   @include autoload.list-reset;
    |            ^
  5 | }
  6 | 

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