question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught syntax error...

See original GitHub issue

Describe the bug

I am following a basic exercise to learn to use Composer. I have made no changes to the text. After I install the Help and Cancel Packages, and create a new trigger and try and change the ‘Allow Interruptions’ property for the Help trigger… i get an error… Uncaught SyntaxError: Failed to execute ‘querySelector’ on ‘Document’: ‘#root[4i5cOe].allowInterruptions-list2’ is not a valid selector.

I inspected the version of the package in the exercise, it is 1.0.0… I first tried the latest package 1.1.2 so I returned to 1.0.0… the error is still there.

Version

I am using Bot Framework Composer v2.1.0

Browser

  • Electron distribution
  • [X ] Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • [ X] Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Follow the exercise on…

https://docs.microsoft.com/en-us/composer/tutorial/tutorial-add-help?tabs=v2x

get to the part where you are building the dialogs for Help and Cancel… and have to introduce Allow Interruptions…

Expected behavior

Screenshots

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
michael-vogt-avanadecommented, Aug 11, 2021

thank you.

i will repeat the weatherbot exercise, and see if i had made some error in copy-pasting any instructions.

m


From: Dana V @.> Sent: Tuesday, August 10, 2021 6:05 PM To: microsoft/BotFramework-Composer @.> Cc: Michael Vogt @.>; Mention @.> Subject: [External] Re: [microsoft/BotFramework-Composer] Uncaught syntax error… (#8515)

When you ran your test, did you also follow the ‘weatherbot’ exercise, or just try and test the help&cancel package some other way?

I just tried adding the package in an empty bot. But I just tried again within the weatherbot example and I get the same as I did before. Unable to reproduce.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FBotFramework-Composer%2Fissues%2F8515%23issuecomment-896368737&data=04|01|michael.vogt%40avanade.com|8a35dea52a974c1fc65508d95c5349a6|cf36141cddd745a7b073111f66d0b30c|0|0|637642335075979612|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=cNQhcWrewcKbXlZ5Yy7Vlm6DFoAPcYUnvudHePibFIs%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATCJBAO3AZAXGKRB6U4G223T4GWB5ANCNFSM5BPLWIGA&data=04|01|michael.vogt%40avanade.com|8a35dea52a974c1fc65508d95c5349a6|cf36141cddd745a7b073111f66d0b30c|0|0|637642335075979612|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=TFnOeAk9V4VaUnYWsPR9zlmqq0rtnh4kV%2BM55H6ZCLA%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|michael.vogt%40avanade.com|8a35dea52a974c1fc65508d95c5349a6|cf36141cddd745a7b073111f66d0b30c|0|0|637642335075989578|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=wXfNin5K9YO%2FtUNCoRxBhZbyTMDpqTDnvurzezUS5u0%3D&reserved=0 or Androidhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26utm_campaign%3Dnotification-email&data=04|01|michael.vogt%40avanade.com|8a35dea52a974c1fc65508d95c5349a6|cf36141cddd745a7b073111f66d0b30c|0|0|637642335075989578|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2BI9FLuTE8FgROrN1UeKtfJOl08BRY%2BhNZHfXPHdAoqA%3D&reserved=0.

0reactions
srinaathcommented, Aug 17, 2021

@michael-vogt-avanade https://github.com/microsoft/BotFramework-Composer/pull/8560 fixed this ticket. This fix would be available if you use our early adopters feed or in a patch release which we would make soon.

Screen Shot 2021-08-16 at 4 58 48 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught SyntaxError: Unexpected token : - Stack Overflow
An "unexpected token" is likely some illegal character code. Such a code is likely not to show up when you print to console....
Read more >
Uncaught SyntaxError: Unexpected token < - JavaScript - iDiallo
All it means is that the interpreter is expecting JavaScript or JSON and you are feeding it HTML/XML. If you don't think you...
Read more >
SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >
How to Handle the Syntax Error in Javascript - Rollbar
The Javascript SyntaxError occurs when trying to interpret code that is not syntactically valid. It is thrown when the Javascript engine ...
Read more >
Uncaught SyntaxError: Unexpected token ')' | WordPress.org
Uncaught SyntaxError: Unexpected token ')' ... Clearing cache temporarily fixes it but it will return as soon as a new footer file is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found