-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught SyntaxError in Firefox: Missing {
Before Function Body (chunk-ACB7EEIH.js)
#8368
Comments
Hello, I did not manage to reproduce the issue with your configuration as it has a flag skipJsErrors set to true. However, I did get the error when skipJsErrors was set to false. Please clarify whether you use skipJsErrors in your test runs. |
Hi, I have |
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news. |
Release v3.7.2-rc.1 addresses this. |
@Bayheck Thank you so much! |
What is your Scenario?
Description:
We are encountering an issue in Firefox that does not appear in Chrome or Edge. When running our application, we receive the following error in the console:
This error is preventing the application from functioning correctly in Firefox. The issue seems to be related to TestCafe's Hammerhead processing script, as shown in the following snippet:
Steps to Reproduce:
Uncaught SyntaxError: missing { before function body
.Expected Behavior:
The application should function without syntax errors in Firefox, as it does in Chrome and Edge.
Actual Behavior:
Firefox throws a
SyntaxError
, preventing proper execution.Environment:
Additional Context:
Would appreciate any insights or fixes for this issue. Thanks!
What is the Current behavior?
Firefox throws a
SyntaxError
, preventing proper execution.What is the Expected behavior?
The application should function without syntax errors in Firefox, as it does in Chrome and Edge.
What is the public URL of the test page? (attach your complete example)
https://formspro.omnibyte.com/automation/nightly
What is your TestCafe test code?
{
"browsers": ["chrome:headless:emulation:width=1920;height=1080 --start-fullscreen;"],
"reporter": [
{
"name": "spec"
},
{
"name": "nunit3",
"output": "results/reports/report.xml"
}
],
"screenshots": {
"takeOnFails": true,
"path": "results/",
"pathPattern": "${TIME}/${TEST_INDEX}/${FILE_INDEX}.png"
},
"disablePageCaching": true,
"stopOnFirstFail": false,
"skipJsErrors": true,
"skipUncaughtErrors": true,
"selectorTimeout": 5000,
"assertionTimeout": 5000,
"pageLoadTimeout": 120000,
"speed": 1,
"cache": false
}
The text was updated successfully, but these errors were encountered: