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.

ReferenceError: SharedArrayBuffer is not defined

See original GitHub issue

Describe the bug Getting a ReferenceError: SharedArrayBuffer is not defined error after [info] ffmpeg-core.js script loaded

To Reproduce Simply initialize FFmpeg on Firefox

Expected behavior It should work as usual on Firefox, but it cannot properly initialize

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10 x64 21H1
  • Browser: Firefox 92.0.1

Additional context This is my repository

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
Fanna1119commented, Nov 9, 2021

If there is someone using vite for development environment. https://github.com/chaosprint/vite-plugin-cross-origin-isolation

4reactions
SeiwonParkcommented, Jun 30, 2022

Anyone who’s using Next.js,

here’s my next.config.js file and it works perfectly

// next.config.js

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  async headers() {
    return [
      {
        source: '/',
        headers: [
          {
            key: 'Cross-Origin-Embedder-Policy',
            value: 'require-corp',
          },
          {
            key: 'Cross-Origin-Opener-Policy',
            value: 'same-origin',
          },
        ],
      },
    ];
  },
};

module.exports = nextConfig;
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 >
Uncaught ReferenceError: SharedArrayBuffer is not defined
If you are using any script file and getting "Uncaught ReferenceError: 'SharedArrayBuffer' is not defined " which means 'SharedArrayBuffer' ...
Read more >
1644840 - ReferenceError: SharedArrayBuffer is not defined
I developed a multithreaded WASM app using emscripten. I also made sure that the javascript.options.shared_memory option was set to TRUE. My em++ build...
Read more >
ReferenceError: SharedArrayBuffer is not defined *FIX
Copy paste this into your script tag: if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;Link to the blog: ...
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