Skip to content

Using an output event causes build failure (TS2722: Cannot invoke an object which is possibly 'undefined') #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
buu700 opened this issue Oct 7, 2020 · 8 comments
Labels
common Includes: Common queries, bug and features

Comments

@buu700
Copy link

buu700 commented Oct 7, 2020

I assume this is a general issue, but I'm specifically using <ejs-schedule (actionComplete) with strict mode.

According to the Angular team, Syncfusion needs to switch over to EventEmitter or make its custom EmitType 100% compatible.

@ajithr ajithr added schedule Schedule component common Includes: Common queries, bug and features and removed schedule Schedule component labels Oct 8, 2020
@kumaresan-subramani
Copy link
Contributor

Hi @buu700 ,

Thank you for contacting Syncfusion support.

We appreciate your effort for the pull request and we have already logged this as a bug that you can refer from the below feedback.

Feedback: https://www.syncfusion.com/feedback/17157/need-provide-support-for-strict-mode-compilation-in-angular-grid

We expect that it will be included with our upcoming patch release scheduled on October 13, 2020.

Please get back to us if you need any further assistance.

@buu700
Copy link
Author

buu700 commented Oct 8, 2020

Glad to hear that, and thanks for the quick follow-up! I'm not able to view that issue, but if this is planned for release in less than a week then that's good enough for me. Just let me know if I need to sign a CLA or anything like that.

@dragouf
Copy link

dragouf commented Jan 22, 2021

I still have this error when I try to use (actionBegin) on grid with angular 11.1 in strict mode. Is it really fixed @kumaresan-subramani ?

@BrandonQDixon
Copy link

I am also experiencing this issue with angular 11 in strict mode.

@jesusarockias
Copy link
Contributor

jesusarockias commented Mar 31, 2021

Hi @dragouf & @BrandonQDixon ,

Sorry for the inconvenience. We need to change the event invoking architecture which involves extensive testing before rolling out. So, we are not able to deliver this on time and we are working on this. We expect that it will be available with our Volume 1, 2021 SP release. We request you to support on this until then.

@jesusarockias
Copy link
Contributor

Hi All,

We are glad that we have completed this issue and it is published with our patch release version “19.1.58”.

https://ej2.syncfusion.com/angular/documentation/release-notes/19.1.58/?type=all#common

Please get back to us if you have any queries.

@tyeety
Copy link

tyeety commented May 10, 2021

Updated to 19.1.59, problem still exists!

error TS2722: Cannot invoke an object which is possibly 'undefined'.
(recordDoubleClick)="grid_recordDoubleClick($event)"

@Mydeen-SN
Copy link
Contributor

Hi @tyeety ,

We have resolved the event related issues in Syncfusion Angular packages, you can use the latest angular packages which will resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Includes: Common queries, bug and features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants