There was a change to the edge bundler over the weekend which has broken my ability to deploy my sites. This is quickly escalating into a very serious business issue for us, as we need to deploy. I have been emailing with support since it happened but not getting anywhere. I am posting here in hopes it reaches the engineering team at Netlify quicker.
My last good deploy was May 25 at 7:51am. I next tried to deploy some changes at May 25 at 10:53am (Eastern US time) and it failed with this error. The error has nothing at all to do with my changes. I’m able to replicate it on all my sites now. I have traced it down and created a test case for you. It fails trying to bundle the one package this, which has not changed in a year and a half. If don’t think it matters, but one test site of mine is e6026dad-840e-4e17-bdfa-3da9eb39469c.
Thank you for any help you can offer to getting my sites deployable again.
import { hydrateContext } from "https://deno.land/x/grammy_hydrate@v1.4.1/mod.ts";
async function handler(_request, _context) {
console.log("edge-request...");
return new Response("OK", { status: 200 });
}
export default handler;
Error below:
3:06:39 PM: Packaging Edge Functions from src/edge-functions directory:
3:06:39 PM: - edge-request
3:06:40 PM:
3:06:40 PM: Bundling of edge function failed
3:06:40 PM: ────────────────────────────────────────────────────────────────
3:06:40 PM:
3:06:40 PM: Error message
3:06:40 PM: Command failed with exit code 1: deno run --allow-all --no-config --import-map=/opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/import_map.json --quiet /opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/bundle.ts {"basePath":"/opt/build/repo/sites/docs-knowfun","destPath":"/tmp/edge-68360d2b820ae20008cd660b/38be1249-e6f2-4b28-a975-03ff8030865d.eszip","externals":[],"functions":[{"name":"edge-request","path":"/opt/build/repo/sites/docs-knowfun/src/edge-functions/edge-request.js"}],"importMapData":"{\"imports\":{\"zlib\":\"node:zlib\",\"worker_threads\":\"node:worker_threads\",\"wasi\":\"node:wasi\",\"vm\":\"node:vm\",\"v8\":\"node:v8\",\"util/types\":\"node:util/types\",\"util\":\"node:util\",\"url\":\"node:url\",\"tty\":\"node:tty\",\"trace_events\":\"node:trace_events\",\"tls\":\"node:tls\",\"timers/promises\":\"node:timers/promises\",\"timers\":\"node:timers\",\"sys\":\"node:sys\",\"string_decoder\":\"node:string_decoder\",\"stream/web\":\"node:stream/web\",\"stream/promises\":\"node:stream/promises\",\"stream/consumers\":\"node:stream/consumers\",\"stream\":\"node:stream\",\"repl\":\"node:repl\",\"readline/promises\":\"node:readline/promises\",\"readline\":\"node:readline\",\"querystring\":\"node:querystring\",\"punycode\":\"node:punycode\",\"process\":\"node:process\",\"perf_hooks\":\"node:perf_hooks\",\"path/win32\":\"node:path/win32\",\"path/posix\":\"node:path/posix\",\"path\":\"node:path\",\"os\":\"node:os\",\"net\":\"node:net\",\"module\":\"node:module\",\"inspector\":\"node:inspector\",\"https\":\"node:https\",\"http2\":\"node:http2\",\"http\":\"node:http\",\"fs/promises\":\"node:fs/promises\",\"fs\":\"node:fs\",\"events\":\"node:events\",\"domain\":\"node:domain\",\"dns/promises\":\"node:dns/promises\",\"dns\":\"node:dns\",\"diagnostics_channel\":\"node:diagnostics_channel\",\"dgram\":\"node:dgram\",\"crypto\":\"node:crypto\",\"constants\":\"node:constants\",\"console\":\"node:console\",\"cluster\":\"node:cluster\",\"child_process\":\"node:child_process\",\"buffer\":\"node:buffer\",\"async_hooks\":\"node:async_hooks\",\"assert/strict\":\"node:assert/strict\",\"assert\":\"node:assert\",\"_tls_wrap\":\"node:_tls_wrap\",\"_tls_common\":\"node:_tls_common\",\"_stream_writable\":\"node:_stream_writable\",\"_stream_wrap\":\"node:_stream_wrap\",\"_stream_transform\":\"node:_stream_transform\",\"_stream_readable\":\"node:_stream_readable\",\"_stream_passthrough\":\"node:_stream_passthrough\",\"_stream_duplex\":\"node:_stream_duplex\",\"_http_server\":\"node:_http_server\",\"_http_outgoing\":\"node:_http_outgoing\",\"_http_incoming\":\"node:_http_incoming\",\"_http_common\":\"node:_http_common\",\"_http_client\":\"node:_http_client\",\"_http_agent\":\"node:_http_agent\",\"@netlify/edge-functions\":\"https://edge.netlify.com/v1/index.ts\",\"netlify:edge\":\"https://edge.netlify.com/v1/index.ts?v=legacy\"},\"scopes\":{}}","vendorDirectory":"/tmp/tmp-3017-O0cPJoSoCZTe"} (https://ntl.fyi/exit-code-1)
3:06:40 PM: error: Uncaught (in promise) Error: Unknown package: @std/path
3:06:40 PM: Specifier: jsr:@std/path@1.0.9/basename
3:06:40 PM: const ret = new Error(getStringFromWasm0(arg0, arg1));
3:06:40 PM: ^
3:06:40 PM: at __wbg_new_d258248ed531ff54 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm.generated.js:443:19)
3:06:40 PM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm_bg.wasm:1:41320)
3:06:40 PM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm_bg.wasm:1:1967317)
3:06:40 PM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm_bg.wasm:1:2501533)
3:06:40 PM: at __wbg_adapter_40 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm.generated.js:240:8)
3:06:40 PM: at real (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm.generated.js:225:14)
3:06:40 PM: at eventLoopTick (ext:core/01_core.js:175:7)
3:06:40 PM:
3:06:40 PM: Error location
3:06:40 PM: While bundling edge function
3:06:40 PM: