C#C
C#4y ago
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
Was this page helpful?