npx create-kendoreact-app error

1 Answer 475 Views
Button
Peter
Top achievements
Rank 1
Peter asked on 27 Sep 2023, 12:03 PM

Hi,

I wanted to try kendo for out new project, but bumped into an error on the very first step.

Run this :

npx create-kendoreact-app

got this error on mac:

 

Initialized a git repository.

Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: ***********.0.1.0
npm ERR! Found: @progress/kendo-svg-icons@1.9.0
npm ERR! node_modules/@progress/kendo-svg-icons
npm ERR!   @progress/kendo-svg-icons@"^1.1.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @progress/kendo-svg-icons@"^2.0.0" from @progress/kendo-react-buttons@5.19.0
npm ERR! node_modules/@progress/kendo-react-buttons
npm ERR!   @progress/kendo-react-buttons@"^5.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:

 

Am I missing something?

 

1 Answer, 1 is accepted

Sort by
0
Filip
Telerik team
answered on 27 Sep 2023, 12:36 PM

Hello, Peter,

This error can usually be resolved by running npm install with the `legacy-peer-deps` flag for newer NPM versions:

npm install @progress/kendo-react-all --legacy-peer-deps

It is also possible that you might need to delete the already created node_modules folder and package-lock.json prior to executing npm install @progress/kendo-react-all --legacy-peer-deps.

Please let me know if the error still persists after running the installation with the suggested command.

Regards,
Filip
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!

Peter
Top achievements
Rank 1
commented on 06 Oct 2023, 03:10 PM

Hi Filip,

My problem still exist.

Followed these steps:

1) create the app with:  

npx create-kendoreact-app

 

This still gives me the above error

2) remove the node_modules folder and package-lock.json

3) run this command:

npm install @progress/kendo-react-all --legacy-peer-deps

4) npm start: gives me this error:

Compiled with problems:
ERROR in ./src/App.js 6:0-55
Module not found: Error: Can't resolve '@progress/kendo-react-buttons' in

 

This is my node version: node -v

v20.6.0

This error is on Mac Apple M2, ventura 13.5.2

 

Alexander
Top achievements
Rank 1
commented on 06 Oct 2023, 03:15 PM

This resolution is unacceptable.  Please fix your tools. We are a paying customer and  are not happy about this. Such issues should be resolved by now.  Seeing same kind of errors.
Filip
Telerik team
commented on 10 Oct 2023, 12:27 PM

Hello, Alexander,

Apologies for any inconvenience that this issue has caused you. We are constantly trying to improve our tools and aim to solve each issue we become aware of as fast as possible. We implemented a fix recently that should resolve this issue, it was merged, and once we publish a new release for `create-kendoreact-app` the error should be resolved.

Until the full version is released I can recommend using `create-react-app` instead and installing the dependencies manually, since `create-kendoreact-app` is built on top of it, while I realize that this approach is not ideal it might still prove beneficial until the fix is available officially.

Regards,
Filip

Tags
Button
Asked by
Peter
Top achievements
Rank 1
Answers by
Filip
Telerik team
Share this question
or