We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

I'm using components in my project. But the scss doesn't work.I imported links in styles.scss and add "stylePreprocessorOptions" in angular.json

I'm using components in my project. But the scss doesn't work.I imported links in styles.scss and add "stylePreprocessorOptions" in angular.json

Please help me !


1 Reply

UD UdhayaKumar Duraisamy Syncfusion Team October 17, 2022 03:29 PM UTC

Hi Do Nhat Duc,


We have validated the shared code snippet and found that you have mentioned the full path of the sass file. The full path of the sass file is not required. You already declare the entry point of the sass file in “stylePreprocessOPtions”. So, we suggest you refer to the path like the below code snippet in the sass file.


@import 'ej2-buttons/styles/material.scss';

@import 'ej2-inputs/styles/material.scss';

@import 'ej2-popups/styles/material.scss';

@import 'ej2-lists/styles/material.scss';

@import 'ej2-splitbuttons/styles/material.scss';

@import 'ej2-calendars/styles/material.scss';

@import 'ej2-angular-calendars/styles/material.scss';


Kindly try the above suggestion and let us know if this meets your requirement.


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Regards,

Udhaya Kumar D



Loader.
Live Chat Icon For mobile
Up arrow icon