Yarn package manager, 'yarn build' error

2 Answers 12 Views
General Discussions
smd
Top achievements
Rank 1
Iron
smd asked on 26 Mar 2024, 12:00 AM

Hi,

First of all, I was able to do 'yarn start' to run the app locally, but when it produced error below when performing 'yarn build'

Lexical error on line 1: Unrecognized text.
  Erroneous area:
1: 100%/var(--kendo-scrollview-views, 1);
^.......................................^
2: }
3:
CompileError: Begins at CSS selector undefined


error Command failed with exit code 1.

I have tried:

1/ Deleted node_modules folder and performed a 'yarn install'

2/ 'yarn upgrade' specific package @progress/kendo-theme-default

 

I did not have the issue before, however, I believe it started to occur after I performed a 'yarn install' (before/without deleting node_modules folder in the first place)

 

2 Answers, 1 is accepted

Sort by
0
smd
Top achievements
Rank 1
Iron
answered on 26 Mar 2024, 07:44 AM

After searching a little bit, I was able to find the error. It is inside the all.css file, for some unknown reason, there are two '0' added in front of the calc, which prevent the compiler from reading the css file. Deleting those zero solved the issue

flex: 0 0 calc(100%/var(--kendo-scrollview-views, 1));

0
Vessy
Telerik team
answered on 27 Mar 2024, 05:26 PM

Hello,

Can you share the kendo-themes version that you are installing in your application? I am asking you that as we are aware of similar bug in the old versions of kendo-themes, but it has been already resolved at the end of the last year and should be not reproducible with the latest version of the themes:

In case upgrading to the latest version of the themes does not resolve the error, please, send us a sample where we can replicate the issue and examine the exact setup leading to it further.

Kind regards,
Vessy
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
smd
Top achievements
Rank 1
Iron
commented on 28 Mar 2024, 02:09 PM

Hi Vessy,

It is a continuous build, so I built on top of what had been there. I'm using kendo-theme-default 4.19

Vessy
Telerik team
commented on 29 Mar 2024, 09:44 AM

Hi, smd, thank you for the update.

Unfortunately, there is no any known workaround for the problem in the used by you version and the only suggestion that I can give you is to upgrade at least to v4.41.0 of the kendo-themes.

Regards,
Vessy

Tags
General Discussions
Asked by
smd
Top achievements
Rank 1
Iron
Answers by
smd
Top achievements
Rank 1
Iron
Vessy
Telerik team
Share this question
or