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

export 'ifElse' was not found in './funcs' : kendo-data-query

2 Answers 138 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 30 Aug 2018, 04:16 PM

I'm getting the following warnings in the latest (8/30/18) version 1.5.0.

WARNING in ./node_modules/@progress/kendo-data-query/dist/es/odata.operators.js
15:52-58 "export 'ifElse' was not found in './funcs'
 
WARNING in ./node_modules/@progress/kendo-data-query/dist/es/odata-filtering.operators.js
36:42-48 "export 'ifElse' was not found in './funcs'
 
WARNING in ./node_modules/@progress/kendo-data-query/dist/es/odata-filtering.operators.js
37:49-55 "export 'ifElse' was not found in './funcs'
 
WARNING in ./node_modules/@progress/kendo-data-query/dist/es/odata-filtering.operators.js
70:92-98 "export 'ifElse' was not found in './funcs'

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 03 Sep 2018, 01:19 PM
Hello Shawn,

Can you please try to remove the package-lock.json file and node_modules folder, clean the npm cache, and reinstall our packages (with their latest versions).

Version 1.5.0 is indeed the latest of the Data Query package, but there might be older versions of other packages still referring to an outdated version of the Data Query package or an NPM-related versions mix-up may cause the described warning.

I just double-checked that the funcs.ts file actually exports an ifElse member, and it does:

/**
 * @hidden
 */
export const ifElse = (predicate, right, left) => value => predicate(value) ? right(value) : left(value);

If the issue persists, please send us an isolated runnable project where it can be observed, so we can inspect it further, determine what is causing it, and provide a solution. Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Shawn
Top achievements
Rank 1
answered on 04 Sep 2018, 07:02 PM
Yes, deleting those and reinstalling cleared the error. Thanks.
Tags
General Discussions
Asked by
Shawn
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Shawn
Top achievements
Rank 1
Share this question
or