Add Telerik to existing project while working with Vite

1 Answer 419 Views
General Discussions
Grzesiek
Top achievements
Rank 2
Iron
Grzesiek asked on 06 Mar 2023, 11:11 AM | edited on 06 Mar 2023, 11:11 AM

I have clear fresh project initialized with Vite. I'm trying to add KendoReact, but there are problems:

npm install --save @progress/kendo-react-all
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-react-app@0.0.0
npm ERR! Found: @progress/kendo-react-popup@5.11.0
npm ERR! node_modules/@progress/kendo-react-popup
npm ERR!   peer @progress/kendo-react-popup@"^5.0.0" from @progress/kendo-react-all@5.11.0
npm ERR!   node_modules/@progress/kendo-react-all
npm ERR!     @progress/kendo-react-all@"*" from the root project
npm ERR!   @progress/kendo-react-popup@"5.11.0" from @progress/kendo-react-buttons@5.11.0
npm ERR!   node_modules/@progress/kendo-react-buttons
npm ERR!     peer @progress/kendo-react-buttons@"^5.0.0" from @progress/kendo-react-all@5.11.0
npm ERR!     node_modules/@progress/kendo-react-all
npm ERR!       @progress/kendo-react-all@"*" from the root project
npm ERR!     peer @progress/kendo-react-buttons@"^5.0.0" from @progress/kendo-react-conversational-ui@5.11.0
npm ERR!     node_modules/@progress/kendo-react-conversational-ui
npm ERR!       peer @progress/kendo-react-conversational-ui@"^5.0.0" from @progress/kendo-react-all@5.11.0

 

Any idea, what's going wrong?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 07 Mar 2023, 10:30 AM

Hello, Grzesiek,

A possible reason for these errors could be that npm install needs to be run with the `legacy-peer-deps` flag for newer NPM versions:

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

I can suggest running the mentioned command, however, you might need to delete the already created "node_modules" folder and the "package-lock.json" prior to executing `npm install @progress/kendo-react-all --legacy-peer-deps` so that it can make a clean install. 

Let me know if the issues still persist after applying the solution.

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

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