Expand my Community achievements bar.

SOLVED

Installing Adobe AEP SDK using react native getting errors

Avatar

Level 3

While initializing the SDK, we are facing an error that says "Cannot read property 'sendEvent' of null" . Does anyone know about this issue? We are following the github repository https://github.com/adobe/aepsdk-react-native#installation

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @jaishal ,

The error message "Cannot read property 'sendEvent' of null" indicates that your code is trying to call the sendEvent method on an object that is null.

Please ensure that the Adobe AEP SDK is correctly imported and that you are calling sendEvent only after the SDK has been fully initialized.

 

Kind regards,
Parvesh

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @jaishal ,

The error message "Cannot read property 'sendEvent' of null" indicates that your code is trying to call the sendEvent method on an object that is null.

Please ensure that the Adobe AEP SDK is correctly imported and that you are calling sendEvent only after the SDK has been fully initialized.

 

Kind regards,
Parvesh

Avatar

Administrator

@jaishal Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni