"ej.web.all\index.d.ts" got many errors when build project
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
SIGN IN To post a reply.
6 Replies
AB
Ashokkumar Balasubramanian
Syncfusion Team
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/[email protected] --save-dev |
Please let us know, if you have any further assistance.
Regards,
Ashokkumar B.
DR
Djordje Radovanovic
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
AS
Abinaya Subbiah
Syncfusion Team
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/[email protected]
|
Please let us know if you need further assist on this.
Regards,
Abinaya S
DR
Djordje Radovanovic
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
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
SS
Subha Shree Ramanathan
Syncfusion Team
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/[email protected] |
For your convenience, we prepared a sample and typings dependencies are used with following version @types/[email protected] and @types/[email protected].
If you are still facing the issue, please share the below details to give solution at earliest.
- Share the attached sample as issue reproducible sample
- Share your package configuration file.
Please let us know if you need further assistance on this.
Thanks,
Subha Shree D.R
SIGN IN To post a reply.
- 6 Replies
- 5 Participants
-
JO Joe
- Aug 18, 2017 03:45 AM UTC
- Aug 28, 2017 10:32 AM UTC