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 exception) ReferenceError: SharedArrayBuffer is not defined in Electron Browser after Update to 8.6.0

See original GitHub issue

Current behavior

After the Update from 8.5.0 to 8.6.0 I get the following error while starting my app in the Electron browser:

Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined

The problem might be the new Electron version, but until now I was not able to find the root cause. An other Cypress user reported a similar problem on Stackoverflow: https://stackoverflow.com/questions/70794396/sharedarraybuffer-not-defined-when-using-cypress/70863376#70863376

Desired behavior

The app should start normally without the SharedArrayBuffer error.

Test code to reproduce

Here ist a simple Code Repo to reproduce the error: https://github.com/unlocomqx/cypress-ffmpeg

Switch the Cypress version to 8.5.0 and start the test with the Electron browser. -> It should work fine Switch the Cypress version to 8.6.0 or higher and start the test with the Electron browser. -> The SharedArrayBuffer error occurs.

Cypress Version

8.6.0 and higher

Other

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

3reactions
Im-a-Traincommented, Jan 31, 2022

@unlocomqx I tested it locally by setting the headers in serve-base.ts as mentioned above in the following file: “C:\Users{USERNAME}\AppData\Local\Cypress\Cache\8.6.0\Cypress\resources\app\packages\server\lib\server-base.js” And the result was as expected. If the top level request returns the COEP and the COOP headers, it works: COEP and COOP Set

@tbiethman, @jennifer-shehane or who else is able to fix this. Could you please fix this. Thanks.

2reactions
6sixtyfour4commented, Jul 29, 2022

Dear Cypress team We encounter the same situation in our projects. It’s getting more and more painful to be stuck with an old Cypress version (8.5.0). We kindly ask you to give this issue a higher priority since the solution is already mentioned in the comments above. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Error: "SharedArrayBuffer is not defined" in Firefox
When you encounter an issue: Uncaught ReferenceError: SharedArrayBuffer is not defined on Chrome, you'll need to apply "cross-origin ...
Read more >
How to fix SharedArrayBuffer is not defined error - TechKBlog
Came across this "SharedArrayBuffer is not defined" error in Firefox browser, while working on a react app of mine. This is how I...
Read more >
Node.js v19.3.0 Documentation
Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class. new assert.AssertionError( ...
Read more >
Search Results - CVE
Users are recommended to upgrade to the latest stable version of Electron. ... If the site that this HTML is published on does...
Read more >
How to solve require is not defined in electronjs - YouTube
How to solve require is not defined in electron js ?Solution:I have solved this issue by updating ElectronJs VersionLet Update it to the ......
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