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

error: 'kendo' is not defined

2 Answers 1990 Views
This is a migrated thread and some comments may be shown as answers.
Jesil
Top achievements
Rank 2
Jesil asked on 14 Aug 2019, 05:14 AM

 

I was used some components for the project purpose, and am getting error in some components like " error: 'kendo' is not defined (no-undef) at src\components\History.vue:27:48: "

why this is happening in many times when I using the components, was am imported the import '@progress/kendo-ui' it  also, whats wrong happened here.. need help.

 

This is the one of flowing issue registered code

Module Warning (from ./node_modules/eslint-loader/index.js):
error: 'kendo' is not defined (no-undef) at src\components\History.vue:27:48:
  25 |         showStaticNotification: function() {
  26 |             var d = new Date();
> 27 |             this.staticNotificationWidget.show(kendo.toString(d, 'HH:MM:ss'));
     |                                                                          ^
  28 |         }
  29 |     },

1 error found.

2 Answers, 1 is accepted

Sort by
1
Ianko
Telerik team
answered on 15 Aug 2019, 10:08 AM
Hello Jesil,

Generally, this is a lint error showing that the kendo is not defined within an import statement. You should use import kendo from '@progress/kendo-ui' in order to have it defined. Or have an ignore rule for the linter for those lines.

Regards,
Ianko
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
takasji
Top achievements
Rank 1
answered on 17 Jun 2020, 05:31 AM

hi.

Add this code to History.vue

------------------------------------------------------------------------------

import kendo from '@progress/kendo-ui'

------------------------------------------------------------------------------

Asked by
Jesil
Top achievements
Rank 2
Answers by
Ianko
Telerik team
takasji
Top achievements
Rank 1
Share this question
or