Can't find stylesheet to import. Angular library #4898
Unanswered
victorcamargos
asked this question in
Q&A
Replies: 1 comment
-
I did a workaround by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With the version 7 of swiper and the use of style exports I am not able to make the import of the css/scss work for Angular library.
It works fine for an Angular app project.
Angular library uses ng-packagr as a builder but I could not find a solution for the import, setting it to ~swiper/css/bundle gets rid of the error but styles are not being applied.
Does anyone have any clue on how to make it work on a library project?
ERROR: Can't find stylesheet to import.
╷
1 │ @import 'swiper/css/bundle';
│ ^^^^^^^^^^^^^^^^^^^
Beta Was this translation helpful? Give feedback.
All reactions