DavidWells / analytics

Lightweight analytics abstraction layer for tracking page views, custom events, & identifying visitors

Home Page:https://getanalytics.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "Cannot read properties of undefined (reading '0')" on analytics-plugin-aws-pinpoint

bannarisoftwares opened this issue · comments

Getting following exception even after configuring AWS credentials for "analytics-plugin-aws-pinpoint".

error - unhandledRejection: TypeError: Cannot read properties of undefined (reading '0') at _callee$ (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:1795:52) at tryCatch (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:121:40) at Generator.invoke [as _invoke] (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:350:22) at Generator.prototype.<computed> [as next] (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:173:21) at asyncGeneratorStep (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:812:24) at _next (/Users/natheeeshkumar/Desktop/Dculus/viewer.forms.dculus.ui/node_modules/@analytics/aws-pinpoint/lib/analytics-plugin-aws-pinpoint.cjs.js:834:9) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Fixed as part of this PR, Please take a look.

b4fd833

Hey thanks for the PR

Released with @analytics/aws-pinpoint@0.7.10

Let me know if you still have issues