iamtalwinder / gif-maker

An awesome tool to convert video files to animated gifs.
https://gif-maker-livid.vercel.app/
MIT License
25 stars 5 forks source link

ffmpeg.wasm Unhandled Runtime Error ReferenceError: SharedArrayBuffer is not defined #1

Open PacoH opened 2 years ago

PacoH commented 2 years ago

After many false starts, following your incomplete install instructions (you omitted cd gif-maker), installing the latest brew version of node and fixing all the npm issues, I finally was able to run the development server. When I did I got this error in Chrome 106.0.5249.91:

Unhandled Runtime Error
ReferenceError: SharedArrayBuffer is not defined

Call Stack
<unknown>
http://localhost:3000/0324b1d2-66ef-44f9-bad1-f81470adc953 (22:175)
Object.load
node_modules/@ffmpeg/ffmpeg/src/createFFmpeg.js (64:0)

If I can't fix this I give up.

pinguluk commented 1 month ago

Workaround is to download https://github.com/gzuidhof/coi-serviceworker and put the file in the public folder and add a reference in the Head component