This is a migrated thread and some comments may be shown as answers.

Gantt wrapper for React: unable to run on my local CentOS

2 Answers 69 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 19 Dec 2018, 05:21 PM
Hi there,

Here is the example that I’m trying to run on my local environment:

https://www.telerik.com/kendo-react-ui/wrappers/gantt/

and here is the errors I’m getting:

./src/app/main.js
  Line 61:   'kendo' is not defined  no-undef
  Line 82:   'kendo' is not defined  no-undef
  Line 110:  'kendo' is not defined  no-undef
  Line 131:  'kendo' is not defined  no-undef

I’m not sure what am I missing.

Here are the steps

OPEN IN STACKBLITZ
Download project
Unzip it
Inside the project directory run “npm install”. This install all dependency into node_modules.
Run “npm start” which starts the server with the errors above.

Some more relate info.
In my Visual Studio I could Ctrl-click on the each of the “kendo.data.GanttDataSource” and it navigates me to corresponding element in kendo-ui module.
In my Visual Studio there is a following error on “import '@progress/kendo-ui';”:
“Exported external package typings file '/home/anabramo/workspaces/dps-ws/repo/code/design-hub-web-poc/pxn5bq.run/node_modules/@progress/kendo-ui/index.d.ts' is not a module. Please contact the package author to update the package definition.”

Would you please advise.

Thanks,
Andrew

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 21 Dec 2018, 10:15 AM
Hi Andrew,

The kendo-ui import is not correct. Please change it as follow:
import kendo from '@progress/kendo-ui';

Also Importing additional jQuery is not necessary. Here is the modified example: https://stackblitz.com/edit/react-mby1ar?file=app/main.js.

Thank you for reporting the issue.

Regards,
Nikolay
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 21 Dec 2018, 03:13 PM
Thank you Nikolay, It works now.
Tags
Wrappers for React
Asked by
Andrew
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or