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 import angular-calendar SASS files in an Angular project. #1596

Closed
santam85 opened this issue Aug 10, 2022 · 2 comments · Fixed by #1595
Closed

Can't import angular-calendar SASS files in an Angular project. #1596

santam85 opened this issue Aug 10, 2022 · 2 comments · Fixed by #1595

Comments

@santam85
Copy link
Contributor

Describe the bug

Can't import library SASS files in an Angular project. Getting the following error:

SassError: Can't find stylesheet to import.
   ╷
12 │ @import "~angular-calendar/scss/angular-calendar";
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  src/styles.scss 12:9  root stylesheet

Minimal reproduction of the problem with instructions

Create an empty Angular project that imports the SASS file in the app styles.scss by using:

@import "~angular-calendar/scss/angular-calendar";

Versions

  • @angular/core: ^14.0.0
  • angular-calendar: ^0.30.0
@matts-bot
Copy link

matts-bot bot commented Aug 10, 2022

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me

@dereekb
Copy link
Contributor

dereekb commented Aug 12, 2022

This is good. I ended up running into this about a week or two ago and ended up copying over the sass stylings to my project . I ended up modifying them a bit more to fit the angular/material mixin style presented.

The one thing I felt I needed to change was the fact that some of the styling classes are defined at the top level instead of within a mixin.

You might want to consider enhancing the SASS files a bit more for customization later. I meant to make a feature request/offer about it. I'd also be opening to copying over a more compatible version of my changes eventually back to this library if that's something desirable. I think I ended up putting more angular material theming adjustments into it that may not all be necessary or need adjustments.

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

Successfully merging a pull request may close this issue.

2 participants