ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

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

Open sleepyChen opened this issue 3 years ago • 4 comments

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?

sleepyChen avatar Feb 27 '23 04:02 sleepyChen

A similar issue is happening with @ffmpeg/core:

mFPTwcRG@2x

The file is definitely present.

juriadams avatar Mar 01 '23 16:03 juriadams

Same error

8borane8 avatar Mar 08 '23 15:03 8borane8

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

cbhh avatar Jun 14 '23 11:06 cbhh

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'

vincent-larisma avatar Aug 16 '23 13:08 vincent-larisma