QuickAdd: (ERROR) Error running capture choice "new task": Invalid or unexpected token

What I’m trying to do

I have lost my vault due to not thinking ahead, and now have to recreate it from scratch. While doing so, I have added the plugin QuickAdd and followed the instructions within Mike Schmitz’s video " How to Manage Tasks in Obsidian: I Turned Obsidian into the Ultimate Task Manager" located at min 13:08 ( video link https://www.youtube.com/watch?v=ZjVBQHyLyMM&t=870s ). After I set up the hot key, I get the following error -QuickAdd: (ERROR) Error running capture choice “new task”: Invalid or unexpected token. The following is the Capture Format under the setting for QuickAdd I have added for reference:

return await this.app.plugins.plugins['obsidian-tasks-
plugin'].apiV1.createTaskLineModal();

Things I have tried

I have looked into the deep eye of the Google machine to find no good news and have queried Mike’s YouTube page as well, and conducted a search here on the Obsidian forum.

Any help would be very very appreciated

ZC

I got the same problem, but I went to official documentation and copied the code and it worked, guess typing the code it lead to some error, just copy directly from:

https://publish.obsidian.md/tasks/Other+Plugins/QuickAdd