KaiWedekind / anycontrol

Voice control for your websites and applications
MIT License
54 stars 6 forks source link

Uncaught TypeError: Cannot read property 'fragments' of undefined - VueJS #7

Open strxetics opened 4 years ago

strxetics commented 4 years ago

Hello,

i have been trying to use this together with VueJS, i tried a lot of things (global scoping etc.) but i have two main problems:

  1. When i add a command like this voiceController.addCommand('testCommand', this.testCommand(voiceController))

the testCommand method from the callback is called upon adding the command

  1. I get an exception when the command is recognized and it is not working:
received command: testCommand

Uncaught TypeError: Cannot read property 'fragments' of undefined

eval    

AnyControl.recognition.onresult

that is index.js lines 37,62,42

Do you have any ideas?

I appreciate your help!

Greetings, Stefan