flyn
V2EX  ›  问与答

Vercel 是不是会屏蔽一些依赖

  •  
  •   flyn · Oct 12, 2022 · 870 views
    This topic created in 1326 days ago, the information mentioned may be changed or developed.

    我写了个 API 用到了 FFMPEG.WASM 这个包,已经确认在本地部署是没问题的。

    然后部署到 Vercel 上面

    访问 API 报 500 错误

    打开 log 页面提示 Error: Cannot find module '@ffmpeg/core'

    然后打印了一下 /node_modules/@ffmpeg/ 目录发现没有 core 这个文件夹

    然后干脆把 @ffmpeg/core 和源码一起传上去 这下能打印出来 但是 log 还是提示同样的错误

    有老哥知道怎么回事吗?

    或者有没有在类似的 Serverless Functions 中用到 FFMPEG.WASM 的项目给小弟参考一下哈

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2696 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 12:18 · PVG 20:18 · LAX 05:18 · JFK 08:18
    ♥ Do have faith in what you're doing.