KendoReact printing out a lot of CSS when I run

1 Answer 9 Views
General Discussions
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
Ryan asked on 17 May 2024, 06:52 PM

Hello,

Whenever I run my project a ton of CSS is being printed. How can I stop this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 20 May 2024, 07:14 PM

Hello Ryan,

Could you please elaborate on what you are referring to by "printing CSS"? The KendoReact suite requires a theme package to be loaded for the styles of the components, so if you are referring to the theme file, if you remove them, no styles will be applied to the copmnents and they will be unusable.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Ryan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 May 2024, 07:18 PM

It's printing warnings about the divide by zero error in one of the CSS files. I believe this has been discussed elsewhere but I was unable to find it.
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 May 2024, 07:19 PM

 @return ( $a / $b );
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 May 2024, 07:19 PM

DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($a, $b) or calc($a / $b)

More info and automated migrator: https://sass-lang.com/d/slash-div

     ╷
1029 │     @return ( $a / $b );
     │               ^^^^^^^
     ╵
    stdin 1029:15  k-math-div()
    stdin 502:13   k-color-contrast-ratio()
    stdin 539:26   k-contrast-color()
    stdin 1749:24  root stylesheet
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 May 2024, 07:20 PM

It then proceeds to print out A LOT of CSS from the library 
Konstantin Dikov
Telerik team
commented on 22 May 2024, 08:04 AM

Hi Ryan,

Thank you for the additional information.

Regarading the warning message, please refer to the answer in the following thread from our front-end architect:

Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or