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

Can't find stylesheet to import #100

Closed
Ponkhy opened this issue Mar 31, 2022 · 4 comments
Closed

Can't find stylesheet to import #100

Ponkhy opened this issue Mar 31, 2022 · 4 comments

Comments

@Ponkhy
Copy link

Ponkhy commented Mar 31, 2022

Hey, I wanted to migrate to Cirrus 0.7.0, unfortunately i'm facing this issue rn, maybe someone has a idea what i could do?

Issue

I'm using Nuxt.js 2.15.8
With Cirrus 0.6.3 i was manually importing every .scss file, but i thougth i should do it now in the good way.

So i tried to import it with

@use "node_modules/cirrus-ui/src/cirrus-ext" as * with (
    $config: (
        excludes: (
            ABSOLUTES,
        ),
        opacity: null, // Disable default opacity classes
        extend: (
            // Add your own
            opacity: (
                25: .25,
                50: .5,
                75: .75,
            )
        )
    ),
);

and the file is definitely in the node_modules folder :/

@Spiderpig86
Copy link
Owner

Spiderpig86 commented Apr 1, 2022

Thanks for the bug report! I have reproduced it myself and will be publishing a patch version very soon to fix this with version 0.7.0.-patch1.

@Spiderpig86
Copy link
Owner

This has been fixed in the new version. Please feel free to install it again.

@Ponkhy
Copy link
Author

Ponkhy commented Apr 1, 2022

Yes it does work! Thank you very much for the quick fix!

@Ponkhy Ponkhy closed this as completed Apr 1, 2022
@art-solopov
Copy link

I'm having a very similar issue on cirrus-ui 0.7.2-patch.1, using SASS CLI 1.75.0:

> sass assets/css/app.scss public/app.css

Error: Can't find stylesheet to import.
  ╷
5 │ @use 'sass-true/sass/config/throw';
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules/cirrus-ui/src/internal/_functions.scss 5:1  @forward
  node_modules/cirrus-ui/src/internal/_index.scss 3:1      @forward
  node_modules/cirrus-ui/src/cirrus-ext.scss 1:1           @use
  assets/css/app.scss 1:1                                  root stylesheet

My app.scss:

@use "../../node_modules/cirrus-ui/src/cirrus-ext" as * with (
  $config: ()
);

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

No branches or pull requests

3 participants