It's been frustrating dealing with this persistent error. I'm in the process of creating my very first chrome extension and for some reason, I just can't seem to pinpoint what's wrong with this particular code snippet:
let beginButton = document.getElementById("BeginBtn")
beginButton.addEventListener("click", function(){ //this is where the error pops up
let recognition = new SpeechRecognition()
recognition.begin()
})