We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

"ej.web.all\index.d.ts" got many errors when build project

Thread ID:

Created:

Updated:

Platform:

Replies:

132173 Aug 18,2017 03:45 AM UTC Aug 28,2017 10:32 AM UTC Angular 6
loading
Tags: General
Joe
Asked On August 18, 2017 04:17 AM UTC

Hi,

I am using VS2017 Community and ASP.NET  web application (.NET framework ) + Web API + Angular + Syncfusion to develop a website.
Recently I got a list of JQuery error from "ej.web.all\index.d.ts",  any advice on what's wrong with my current settings would be appreciated.

Build:All declarations of 'JQuery' must have identical type parameters.
C:\Users\xxxx\documents\visual studio 2017\Projects\Angular2MVC\Angular2MVC\node_modules\@types\ej.web.all\index.d.ts Line: 69899


Attachment: config_files_251a38c2.7z

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 21, 2017 12:13 PM UTC

Hi Joe, 
 
Sorry for Inconvenience casued. 
 
We are able to reproduce the issue at our end. We suggest you to downgrade the version of typings file @types/ej.web.all inorder to resolve the issue in your end. Refer to the below command to install typings file.  
 
npm install @types/ej.web.all@15.2.4 --save-dev  
 
Please let us know, if you have any further assistance. 
 
Regards, 
Ashokkumar B. 


Djordje Radovanovic
Replied On August 24, 2017 01:19 PM UTC

Hello,

I had the same problem as Joe and when I applied your advice that problems gone but now I have different problem:

ERROR in E:/Angular/syncfusion-ng/node_modules/@types/jquery/index.d.ts (7815,11): Interface 'JQueryDeferred<T>' cannot simultaneously extend types 'Deferred<T, any, any>' and 'JQueryPromise<T>'.

and many others which follow this problem but I believe that root of all others are in this line.

Can we have qiuck solution?


Best regards,


Djordje


Abinaya Subbiah [Syncfusion]
Replied On August 25, 2017 06:44 AM UTC

Hi Djordje Radovanovic, 

We deeply regret for the inconvenience caused. 

We have analyzed the reported jQuery issue “Interface 'JQueryDeferred<T>' cannot simultaneously extend types 'Deferred<T, any, any>' and 'JQueryPromise<T>'.”  and found that the cause of issue is, typescript definition file ej.web.all is not compatible with latest version(3.2.12) of jQuery file. So for now we suggest you to install and use @types/jquery version 3.2.7.  

Also we will let you know once we fixed issue and refresh it in DefinitelyTyped repository. 

Run the below command to install typings file jquery. 

npm install --save-dev @types/jquery@3.2.7 


Please let us know if you need further assist on this. 

Regards, 
Abinaya S 


Djordje Radovanovic
Replied On August 25, 2017 07:24 AM UTC

I followed your instruction and now I am stucked with another error:

ERROR in E:/Angular/syncfusion-ng/node_modules/@types/jquery/index.d.ts (69,18): Generic type 'JQuery<TElement, HTMLElement>' requires 2 type argument(s).

Best regards,

Djordje


Joe
Replied On August 28, 2017 02:44 AM UTC

I followed your instruction and now I am stucked with another error:

ERROR in E:/Angular/syncfusion-ng/node_modules/@types/jquery/index.d.ts (69,18): Generic type 'JQuery<TElement, HTMLElement>' requires 2 type argument(s).

Best regards,

Djordje


Hi Djordje Radovanovic, 


Try to use "@types/jquery": "~2.0.42"


Best Regards,
Joe


Subha Shree Ramanathan [Syncfusion]
Replied On August 28, 2017 10:32 AM UTC

Hi Djordje Radovanovic,  

We are facing jQuery issue while using @types/ej.web.all with latest version of jquery typings file. So for now we suggest you to install and use @types/jquery version 3.2.7.    

Also, we will let you know once we fixed issue and refresh it in DefinitelyTyped repository.   

Run the below command to install typings file jquery.   

npm install --save-dev @types/jquery@3.2.7   

For your convenience, we prepared a sample and typings dependencies are used with following version @types/ej.web.all@15.3.2 and @types/jquery@3.2.7


If you are still facing the issue, please share the below details to give solution at earliest. 

  1. Share the attached sample as issue reproducible sample
  2. Share your package configuration file.

Please let us know if you need further assistance on this. 

Thanks, 
Subha Shree D.R 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;