ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.01k stars 816 forks source link

Not allowed to load local resource: file:///Users/xxx/node_modules/@ffmpeg/ffmpeg/src/browser/ffmpeg-core.js #479

Open sleepyChen opened 1 year ago

sleepyChen commented 1 year ago

When using this npm plugin, an error occurs when executing ffmpeg.load with the following error message: Not allowed to load local resource: file:///Users/xxx/node_modules/@ffmpeg/ffmpeg/src/browser/ffmpeg-core.js.

how can i fix it?

juriadams commented 1 year ago

A similar issue is happening with @ffmpeg/core:

mFPTwcRG@2x

The file is definitely present.

8borane8 commented 1 year ago

Same error

cbhh commented 1 year ago

node#fetch can't read file system path, I wonder why they didn't notice this

vincent-larisma commented 1 year ago

I know this issue is old but it may serve a purpose to those who get the same error - have you tried doing a relative path like '/node_modules/@ffmpeg/ffmpeg/src/browser/ffmpeg-core.js'