How to import local code into Deno function?

I am no table to import a local file into a Deno / Edge function. It allows me to import a local file as long as its within the supabase directory, but I am using a monorepo and am trying to import files and functions that are used in other places within the app.

My example is pretty straight forward and I cant seem to figure out how to reused simple functions in an Edge function.

packages/app/foo.ts
export function foo() { return true; }


packages/backend/supabase/functions
import { foo } from 'app'; 
TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'foo'.

have also tried
import { foo } from '../packages/app/foo.ts'

and I get the same error.
Was this page helpful?