Closed Rushikesh-lrm closed 2 years ago
Are you sure you're importing the CSS correctly? I just set this up following the install directions and it works fine. If I break the CSS import I see something similar to the screenshot you posted. Rather than trying to go up several directories, you can import it like this:
@import '~css-star-rating/scss/star-rating';
For what its worth, I had this exact same issue (using Angular 6 too). Turns out the import needs to be done literally in the styles.scss file
The documentation does say this but that fact was lost on me 😂
Hope this helps someone else.
@Rushikesh-lrm I am still facing the same issue. Did you find any solution for the same?
I was having this same issue. I got around it in the end by referencing the scss in my angular.json styles array:
This is an issue on angular 6. I Am doing everything exactly same as given but it's still shows something like above HTML
CSS
@import '../../../../node_modules/css-star-rating/scss/star-rating.scss';
module.ts