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

@use , @forward, not working! #140

Open
k1nxx opened this issue Jun 6, 2021 · 0 comments
Open

@use , @forward, not working! #140

k1nxx opened this issue Jun 6, 2021 · 0 comments

Comments

@k1nxx
Copy link

k1nxx commented Jun 6, 2021

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 | 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant