You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to use cypress-terminal-report 6.1.2 (the latest version).
When Cypress runs with this new plugin, it prints this:
Error: Webpack Compilation Error
./node_modules/cypress-terminal-report/src/collector/LogCollectSimpleControl.js 44:48
Module parse failed: Unexpected token (44:48)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
|
> if (testState === 'failed' && mochaRunnable?._retries > 0) {
| testTitle += ` (Attempt ${mochaRunnable?._currentRetry + 1})`
| }
@ ./node_modules/cypress-terminal-report/src/installLogsCollector.js 18:32-78
@ ./cypress/support/e2e.ts
After some investigation, I found the issue might be the "optional chaining operator", and it is introduced from this commit (ea03e69).
I switched cypress-terminal-report to version 6.0.2 (without above commit), and it works.
Is "optional chaining operator" valid in this project? Or might the user (Cypress user) change some configuration to overcome this? I can use version 6.0.2, but perhaps the latest version can address this issue as well.
Thanks
The text was updated successfully, but these errors were encountered:
Hello, I am trying to use cypress-terminal-report 6.1.2 (the latest version).
When Cypress runs with this new plugin, it prints this:
After some investigation, I found the issue might be the "optional chaining operator", and it is introduced from this commit (ea03e69).
I switched cypress-terminal-report to version 6.0.2 (without above commit), and it works.
Is "optional chaining operator" valid in this project? Or might the user (Cypress user) change some configuration to overcome this? I can use version 6.0.2, but perhaps the latest version can address this issue as well.
Thanks
The text was updated successfully, but these errors were encountered: