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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TypeError: Cannot read property '0' of undefined

Thread ID:

Created:

Updated:

Platform:

Replies:

151232 Feb 4,2020 03:53 PM UTC Feb 19,2020 10:03 AM UTC Angular - EJ 2 2
loading
Tags: Diagram
Gabo EE
Asked On February 4, 2020 03:53 PM UTC

Hello,
there is error in your library at source code:

...
 if (this.isConnected) {
                let connector = args.source.connectors[0];
                let nodeEndId = this.endPoint === 'ConnectorSourceEnd' ? 'sourceID' : 'targetID';
                let portEndId = this.endPoint === 'ConnectorSourceEnd' ? 'sourcePortID' : 'targetPortID';
...

It is even visible in your documentation.


It happens if you draw connector, but you do not connect it.

ERROR Error: Uncaught (in promise): TypeError: Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
    at ConnectorDrawingTool.<anonymous> (ej2-diagrams.es2015.js:21617)
    at Generator.next (<anonymous>)
    at ej2-diagrams.es2015.js:21242
    at new ZoneAwarePromise (:4200/polyfills.js:4111)
    at push../node_modules/@syncfusion/ej2-diagrams/dist/es6/ej2-diagrams.es2015.js.__awaiter$1 (ej2-diagrams.es2015.js:21238)
    at ConnectorDrawingTool.mouseUp (ej2-diagrams.es2015.js:21607)
    at ConnectorDrawingTool.<anonymous> (ej2-diagrams.es2015.js:22645)
    at Generator.next (<anonymous>)
    at ej2-diagrams.es2015.js:21242
    at new ZoneAwarePromise (:4200/polyfills.js:4111)
    at resolvePromise (:4200/polyfills.js:4032)
    at new ZoneAwarePromise (:4200/polyfills.js:4114)
    at push../node_modules/@syncfusion/ej2-diagrams/dist/es6/ej2-diagrams.es2015.js.__awaiter$1 (ej2-diagrams.es2015.js:21238)
    at ConnectorDrawingTool.mouseUp (ej2-diagrams.es2015.js:21607)
    at ConnectorDrawingTool.<anonymous> (ej2-diagrams.es2015.js:22645)
    at Generator.next (<anonymous>)
    at ej2-diagrams.es2015.js:21242
    at new ZoneAwarePromise (:4200/polyfills.js:4111)
    at push../node_modules/@syncfusion/ej2-diagrams/dist/es6/ej2-diagrams.es2015.js.__awaiter$1 (ej2-diagrams.es2015.js:21238)
    at ConnectorDrawingTool.mouseUp (ej2-diagrams.es2015.js:22637)

Shyam G [Syncfusion]
Replied On February 5, 2020 01:00 PM UTC

Hi Gabo,  
  
Reported Issue : Cannot read property '0' of undefined 
    
We can reproduce the issue. We have confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on 19th February,2020 weekly patch release.  
   
Now, you can track the status of your issue through below feedback link.  
 
 
Regards,  
Shyam G  


Aravind Ravi [Syncfusion]
Replied On February 19, 2020 10:03 AM UTC

Hi Gabo,  
    
We have fixed the reported issue and included it in our patch release (v17.4.50) which is rolled out successfully.   
   
Please upgrade to the latest version packages to resolve this issue.         
  
Regards,  
Aravind Ravi 
 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon