boomerang
boomerang copied to clipboard
Bug: Trying to read metric from plugin that is undefined
I am experiencing an edge case where I am trying to read Time to First Interaction, but do not have the EventTiming plugin.
https://github.com/akamai/boomerang/blob/master/plugins/continuity.js#L3369-L3376
In the above code, there is a path where fid
is loaded from the externalMetrics while the EventTiming plugin is undefined or not enabled, but then ttfi
tries to read from the EventTiming plugin while it is undefined, resulting in the error TypeError: Cannot read properties of undefined (reading 'metrics')
Thank you for investigating and reporting this issue.