Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

"sass": "1.65.1" Error: This variable was not declared with !default in the @used module. #2063

Closed
sysmat opened this issue Aug 14, 2023 · 5 comments

Comments

@sysmat
Copy link

sysmat commented Aug 14, 2023

  • using sass
@use "./node_modules/@picocss/pico/scss/pico.scss" with ( // overwrite pico
    $primary-500: #E65A00,
    $primary-600: #C54100,
    $primary-700: #A52D00);
  • Error: This variable was not declared with !default in the @used module.
  • this working fine with sass 1.64.2
@Goodwine
Copy link
Member

Which pico version? Can you have a minimal repro that doesn't use pico?

@sysmat
Copy link
Author

sysmat commented Aug 15, 2023

"@picocss/pico": "^2.0.0-alpha1",

@sysmat
Copy link
Author

sysmat commented Aug 15, 2023

@ntkme
Copy link
Contributor

ntkme commented Aug 15, 2023

It appears to be a breaking change between pico 1.x and 2.x, which has nothing to do with sass version.

@Goodwine
Copy link
Member

As @ntkme mentions, the issue is a breaking change in picocss. I recommend writing a script that can repro the issue and using git-bisect on picocss to identify when the issue started.

https://git-scm.com/docs/git-bisect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants