ej2-dropdown typing error

Hi, 
I have following 2 questions:
1. I need 'ej2-react-grid' for my project and when I pull down this npm package, it also fetches some unrelated packages as dependency.   
    ex: ej2-dropdown, ej2-calendars etc though I am not using any filtering, paging features. Is this expected?
2. Considering I ignore the above mentioned part, when I try to run my app I get the following error.

[at-loader] ./node_modules/@syncfusion/ej2-grids/node_modules/@syncfusion/ej2-dropdowns/src/auto-complete/auto-complete-model.d.ts:8:18 
    TS2430: Interface 'AutoCompleteModel' incorrectly extends interface 'ComboBoxModel'.
  Types of property 'filtering' are incompatible.
    Type 'EmitType<FilteringArgs> | undefined' is not assignable to type 'EmitType<FilteringEventArgs> | undefined'.
      Type 'EmitType<FilteringArgs>' is not assignable to type 'EmitType<FilteringEventArgs> | undefined'.
        Type 'EmitType<FilteringArgs>' is not assignable to type 'EmitType<FilteringEventArgs>'.
          Type 'EmitType<FilteringArgs>' is not assignable to type '(arg?: FilteringEventArgs | undefined, ...rest: any[]) => void'.
            Types of parameters 'arg' and 'arg' are incompatible.
              Type 'FilteringEventArgs | undefined' is not assignable to type 'FilteringArgs | undefined'.
                Type 'FilteringEventArgs' is not assignable to type 'FilteringArgs | undefined'.
                  Type 'FilteringEventArgs' is not assignable to type 'FilteringArgs'.
                    Property 'preventDefaultAction' is missing in type 'FilteringEventArgs'.
[at-loader] ./node_modules/@syncfusion/ej2-grids/node_modules/@syncfusion/ej2-dropdowns/src/auto-complete/auto-complete.d.ts:20:22 
    TS2415: Class 'AutoComplete' incorrectly extends base class 'ComboBox'.
  Types of property 'filtering' are incompatible.
    Type 'EmitType<FilteringArgs>' is not assignable to type 'EmitType<FilteringEventArgs>'.
      Type 'EmitType<FilteringArgs>' is not assignable to type '(arg?: FilteringEventArgs | undefined, ...rest: any[]) => void'.

Can you please confirm if this is an actual issue?

Thanks,
Pooja

4 Replies

PS Pavithra Subramaniyam Syncfusion Team January 22, 2018 10:44 AM UTC

Hi Pooja, 

We have tried your dependencies in our package.json file but we could not reproduce the reported issue. We have prepared a sample with the dependency packages mentioned in your last update and it can be downloaded in the below location.  


Could you please share the following details that will be helpful us to check the cause of the issue and provide a better solution as early as possible? 

                     1.Share the configurations (for compiler and loader etc) used in your project. 
                     2.Share your node and npm version. 
                     3.Please reproduce the issue in the sample if possible. 

Regards, 
Pavithra S. 



PO Pooja January 22, 2018 06:01 PM UTC

Hi, I have been using yarn to pull down the dependencies. This time I tried with npm and I got an error while trying to get syncfusion package.
I have attached npm debug log. That has the details about my runtime environment and node, npm versions at the end. 
Please take a look and let me know if that helps.

Also if it helps - we are using .NET Core.

Thanks,
Pooja

Attachment: npmdebug_ba11d78.rar


PO Pooja January 23, 2018 08:50 PM UTC

We can close this thread. I have a duplicated incident created for this.


IR Isuriya Rajan Syncfusion Team January 24, 2018 04:00 AM UTC

Hi Pooja, 
We are sorry for the inconvenience caused.  
 
We have found the cause of your issue “Appears to be a git repo or submodule” and resolved the reported issue by removing .git folder in the latest version (15.4.26) of Essential JS 2 npm packages. We suggest you to update the package version to 15.4.26  to resolve the issue.  Please follow up the incident for further update 
 
 
Please let us know if you have any concerns. 
 
Regards, 
Isuriya R 
 


Loader.
Up arrow icon