© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
64 replies
FroxerBBQ

ToastElement

Hello guys,

I am going through a project and found some things not working, this is one of the errors that I could not solve easily by myself as typescript is a greener area for me


Error TS2722 (TS) Cannot invoke an object which is possibly 'undefined'. D:\asd\Web\ClientApp\tsconfig.json
D:\asd\ToastElement.spec.tsx


beforeEach(() => {
wrapper.find(Toast).props().onClose();
});

This is occuring in a ToastElement.spec.tsx file

Best Regards
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page