Next.js Discord

Discord Forum

Been stuck since yesterday in vercel build, pls someone help

Unanswered
Atlantic herring posted this in #help-forum
Open in Discord
Atlantic herringOP
Suddenly builds are failing because of wasm error related to my api file that uses vercel/og

Next version: 14

Error
Error: The Edge Function "api/img/most-played" is referencing unsupported modules:
--
22:05:30.984 | - __vc__ns__/0/index.js: ./resvg.wasm?module, ./yoga.wasm?module, url


Actual File path: pages/api/img/most-played.tsx


Please help me with this as I cannot build anything

Ive also added this in my next config

 webpack: (config) => {
    config.experiments = {
      layers: true,
      asyncWebAssembly: true,
      syncWebAssembly: true,
    };
    return config;
  },


Thanks

3 Replies

Atlantic herringOP
anyone pls? this has me stuck for 3 days now &752637460550385834
please do not ping moderators for code help, only moderation concerns
Atlantic herringOP
who can i ping?