Build Error

2 Answers 2546 Views
General Discussions
Jens
Top achievements
Rank 1
Jens asked on 16 Nov 2021, 06:39 PM

Hi,

I have a React app. If I want to build this I get an error

Failed to compile.

./node_modules/@progress/kendo-theme-default/dist/all.css
ParserError: Expected closing parenthesis at line: 1, column 5

 

however, when i check all.css it looks ok.

how can i fix this?


Thank You, Jens
thechrisberry
Top achievements
Rank 1
commented on 18 Feb 2022, 02:26 PM

Yeah I ran into a ton of errors when trying to use example project Kendo React Finance. I am not sure I want to use a code stack when the examples are out of date and or font work.
Stefan
Telerik team
commented on 18 Feb 2022, 02:51 PM

Hello, 

We are sorry to hear about your experience with the product. We have over 1500+ different examples and sometimes it takes time to update all of them with all new versions of the themes and other third-party libraries. 

Based on the attached error it seems that it cannot find a package, but the error message is cut and I cannot see the full error. Could you please share with us and we will be happy to assist.

thechrisberry
Top achievements
Rank 1
commented on 18 Feb 2022, 02:55 PM

Sorry I did cut the screen cap short. Attached is the full error. 
Stefan
Telerik team
commented on 21 Feb 2022, 08:09 AM

Hello,

Thank you for the full error message. Based on the message it seems a package is not found in the registry:

There could be two reasons for this:

1) The package was removed from the registry - This is a @babel package and we are not the ones distributing and supporting it. It is used internally by create-react-app.

2) I see that you are using yarnnpkg registry instead of the default npm registry, that could be a reason for the missing package:

https://github.com/yarnpkg/yarn/issues/6123 (similar error for a package missing is their registry)

 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 Nov 2021, 01:51 PM

Hello, Jens,

We noticed that the same error message can occur if the react-scripts package is using version 3*:

https://www.npmjs.com/package/react-scripts

Another option is to try updating the @progress/kendo-theme-default package to the latest version as well, as we only had these reports for the previous version.

I can suggest firstly updating the theme version and if the issue still occurs to update the react-scripts package as well.

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Stephen
Top achievements
Rank 1
Iron
answered on 13 Feb 2022, 07:09 PM

C:\c_backup\MYSTUF\Thinira\Thinira\goldagenda\goldAgendReact\source_code\node_modules\@progress\kendo-theme-default\dist\all.scss

 


        .k-scrollview-view {
            width: calc( 100% / var(--kendo-scrollview-views, 1) );
            // flex: 0 0 calc( 100% / var(--kendo-scrollview-views, 1) );
        }

 

comment this line 

Abi
Top achievements
Rank 1
commented on 03 Mar 2022, 11:48 PM

Hi there ! 

We were getting the same error, tried updating react-scripts and @progress/default (5.2.0) but no luck. We commented out this line (THANKS STEPHEN!!) and it built successfully.

We don't want to deploy like this - is there a solution or explanation of how to fix this?

Stefan
Telerik team
commented on 04 Mar 2022, 06:07 AM

Hello,

We have made different tests and in them, the error disappeared after updating the react-scripts version to 4+. Still, we are maybe missing some important details based on which the error still occurs after an update.

If anyone can share an example where the error still occurs after the update we will be very grateful and we will investigate what could be causing it and provide a fix.

Nassef
Top achievements
Rank 1
commented on 12 Oct 2022, 03:37 PM

Hi there

are there any updates on this? 

We were getting the same error, tried updating react-scripts and @progress/default (5.2.0) but no luck. We commented out this line (THANKS STEPHEN!!) and it built successfully.

We don't want to deploy like this - is there a solution or explanation of how to fix this?

Because I don't want to deploy like that
or else I would have to stop ignoring my node_modules which is very huge

Filip
Telerik team
commented on 14 Oct 2022, 07:01 AM

Hello,

Is it possible to provide an example where this error is reproduced after the update so that we can inspect it further and find a solution?

Regards,
Filip

Manager
Top achievements
Rank 1
commented on 10 Nov 2022, 11:28 AM

hi,

i also get error :

Do you have any solution for this?

Filip
Telerik team
commented on 14 Nov 2022, 08:11 AM

Hi, Raffi,

I can recommend deleting the node_modules and then doing a clean npm install.

Regards,
Filip

Tags
General Discussions
Asked by
Jens
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Stephen
Top achievements
Rank 1
Iron
Share this question
or