-
Notifications
You must be signed in to change notification settings - Fork 46
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
App not working due to Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined. #2
Comments
In my case even the js files were not loading, then I switched to
Now facing the same issue. A mentioned here Issue 1 it seems to be a CORS related issue, but I'm not sure how to resolve this in React. |
Same issue here, it started with the ffmpeg not loading, it passes the load error if we run the code from Git, but now it fails with SharedArrayBuffer error, and I am unable to find a way to enable CORS. |
You need to run chrome with a flag enabling shared array buffer . It worked for me |
What is the flag and where do I set it ? |
Run this in your command prompt in chrome.exe directory
|
@apoorvpandey0 Install
|
@formula21 Thank you. That fixed it. Follow up Question: In your example you declare 'plugins' twice. Once at the top containing the default |
I am not sure however, it overwrites the same. This is because, this is a smaller part of a big project and this produced no side-effects! But this does not mean it is a good coding practice or standard anywhere keeping duplicate keys. I am going to change stuff before my team spots this. |
For the one who have tried vite config with ffmpeg - here is the solution for dev env |
Hi, Can you suggest any fix for the aforesaid issue?
I am facing the same in one of my react app which also uses ffmpeg. I tried running your app locally but it does not work. Home page shows Loading.
"Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined" is shown in console, execution of js stops at await ffmpeg.load();
PFB screenshot of the issue.
The text was updated successfully, but these errors were encountered: