Hey, I am receiving error reports where JS throws an error in the code of some plugins with a filterTransaction method such as this:
export let accessRightsPlugin = function(options) {
return new Plugin({
key,
filterTransaction: (transaction, state) => {
let remote = transaction.getMeta('remote')
...
},
...
})
}
JavaScript throws the error:
Uncaught TypeError: Cannot read property 'getMeta' of undefined
Which would mean that the transaction was undefined. The question is then why does filterTransaction get triggered on an undefined transaction? I have not been able to reproduce this myself, but I have received the same error report from several different users.