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 SyntaxError: Unexpected token ) when trying out the sample...

See original GitHub issue

I’ve a problem only with trying out the sample from your readme page!

   1) Error on page "http://devexpress.github.io/testcafe/example/":

      Uncaught SyntaxError: Unexpected token )

and the error will be shown here

 >  8 |      .typeText('#input', 'Peter Parker')

I’ve used ChromeCanary for my test and I was running test cafe version 0.9.0 Do I need any specific Node version? I’m using 6.5.0 here on a MacOS system. Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:38 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
georgiy-abbasovcommented, Apr 25, 2017

@eriklharper, thank you for information! I have reproduced problem and created separate issue, you can track it here, As a temporary workaround you can use " --skip-js-errors" launch option: testcafe --skip-js-errors chrome test.js

0reactions
garycasscommented, Apr 27, 2019

The TestCafe “Getting Started” sample works if you insert parentheses like so: fixture ('Getting Started') .page ('http://devexpress.github.io/testcafe/example');

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Unexpected token in JavaScript | bobbyhadz
The "Uncaught SyntaxError: Unexpected token" occurs for multiple reasons: · The error is also caused if you're making an HTTP request to a...
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 >
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 >
Troubleshoot 'Uncaught SyntaxError: Unexpected token u in ...
The 'Uncaught SyntaxError: Unexpected token u in JSON at position 0' error is caused when the client has been asked to execute JSON.parse() ......
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