You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using pico v2.0.3 in a Next.js project via the npm package (and using pnpm), the regular version works fine but trying to use @use with the yellow theme gives me this error:
This variable was not declared with !default in the @used module
The text was updated successfully, but these errors were encountered:
SachaG
changed the title
Variant error: "This variable was not declared with !default in the @used module"
@use error: "This variable was not declared with !default in the @used module"
Feb 20, 2024
SachaG
changed the title
@use error: "This variable was not declared with !default in the @used module"
SassError: "This variable was not declared with !default in the @used module"
Feb 20, 2024
Oh, I noticed that although @use "pico"; works, it's loading the previous version of Pico (pre-2.0). So maybe that's the root of the issue? If that variable doesn't exist in previous versions that might explain the error. But then how can I make it load the right version…?
Note: on the other hand @import "@picocss/pico/scss/pico"; does load v2…
Using pico v2.0.3 in a Next.js project via the npm package (and using pnpm), the regular version works fine but trying to use
@use
with the yellow theme gives me this error:The text was updated successfully, but these errors were encountered: