Open danablend opened 2 weeks ago
Hey there !
I've just tried this out with the latest 1.223.10
of the cli on a Windows11 machine and wasn't able to reproduce. So this might have been fixed by one of the edge-runtime
update.
Could you please try again with latest version @danablend and report back ?
Describe the bug On Windows 11 using Docker and Supabase CLI to deploy a Supabase Edge Function, it fails to correctly import local files that are inside of the function directory (like a libs.ts file). I searched CLI versions to determine where this started, and I found that it works fine on CLI v1.186.3 - but when upgrading the CLI to version 1.187.0 or beyond, it is unable to import the local module, and can't boot the worker on Supabase.
It is perfectly reproducible on my machine, with only the CLI version upgrade to 1.187.0 and beyond causing the problem.
To Reproduce Steps to reproduce the behavior:
Deno.serve(async (req) => { try { const { foo } = await req.json();
});
// supabase/functions/test/libs.ts type Params = { foo: string; };
export const processParams = (params: Params) => { if (!params.foo) { throw new Error("Missing foo parameter"); }
};
─────────────────────────┼──────────────────┼───────── supabase/postgres │ 15.1.1.61 │ - supabase/gotrue │ v2.151.0 │ - postgrest/postgrest │ v12.2.0 │ - supabase/realtime │ v2.29.15 │ - supabase/storage-api │ v1.0.6 │ - supabase/edge-runtime │ v1.55.0 │ - supabase/studio │ 20240701-05dfbec │ - supabase/postgres-meta │ v0.83.2 │ - supabase/logflare │ 1.4.0 │ - supabase/supavisor │ 1.1.56 │ -