- Home
- Forum
- Angular - EJ 2
- TypeError: Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
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)
SIGN IN To post a reply.
2 Replies
SG
Shyam G
Syncfusion Team
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
AR
Aravind Ravi
Syncfusion Team
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
SIGN IN To post a reply.
- 2 Replies
- 3 Participants
-
GE Gabo EE
- Feb 4, 2020 03:53 PM UTC
- Feb 19, 2020 10:03 AM UTC