using require in esm #1

Open
opened 2026-02-27 02:02:40 +01:00 by B00tLoad · 0 comments
Owner
⨯ uncaughtException:  Error: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla.
  From /home/b00tload_/src/video-compliance/node_modules/.pnpm/@cis-oss+avprobe-wasm@0.3.2/node_modules/@cis-oss/avprobe-wasm/worker-node.mjs
  Requiring /home/b00tload_/src/video-compliance/node_modules/.pnpm/@cis-oss+avprobe-wasm@0.3.2/node_modules/@cis-oss/avprobe-wasm/ffprobe-wasm.mjs
    at ignore-listed frames {
  code: 'ERR_REQUIRE_ASYNC_MODULE'
}
``` ⨯ uncaughtException: Error: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla. From /home/b00tload_/src/video-compliance/node_modules/.pnpm/@cis-oss+avprobe-wasm@0.3.2/node_modules/@cis-oss/avprobe-wasm/worker-node.mjs Requiring /home/b00tload_/src/video-compliance/node_modules/.pnpm/@cis-oss+avprobe-wasm@0.3.2/node_modules/@cis-oss/avprobe-wasm/ffprobe-wasm.mjs at ignore-listed frames { code: 'ERR_REQUIRE_ASYNC_MODULE' } ```
B00tLoad added the Kind/Bug
Reviewed
Confirmed
1
Priority
Critical
1
labels 2026-02-27 02:02:40 +01:00
B00tLoad referenced this issue from a commit 2026-02-27 02:06:32 +01:00
Sign in to join this conversation.