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

3 posts, 0 answers
  1. Andrew
    Andrew avatar
    4 posts
    Member since:
    Dec 2018

    Posted 19 Dec 2018 Link to this post

    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. Nikolay
    Admin
    Nikolay avatar
    102 posts

    Posted 21 Dec 2018 Link to this post

    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
  3. Andrew
    Andrew avatar
    4 posts
    Member since:
    Dec 2018

    Posted 21 Dec 2018 in reply to Nikolay Link to this post

    Thank you Nikolay, It works now.
Back to Top