deno/supabase edge func: so many typescript lint errors
i dont want to disable typescript errors, actually want to fix this
do i need to make a change in tsconfig.json or .eslintrrc.cjs to fix this? a little lost on why so many errors are popping up
can also see me tree structure in pic. the
supabase
folder is at root, outside of src
8 Replies
Have you checked if serve has been imported correctly?
i assume yes because my code works and deploys, but i havent explicitly tested
I haven't used Deno myself, so I am not an expert, but I would try this first:

done but not solved
If you hover over {serve} what do you get in Vscode?
nothing :/ but i get cmd+click when i hover over the deno.land url
Have you checked if there are Typescript types in the package?
If the package has types in DefinitelyTyped you can manually import them via
// @deno-types="npm:@types/chalk@4"
(but replace it for your package)i feel like i shouldnt have to. neither of the walkthroughs mention it. or is this more wrangling with ct3a?
https://www.youtube.com/watch?v=rzglqRdZUQE&t=144s
and the video shows his linting isnt messed up
https://supabase.com/docs/guides/functions/quickstart#create-an-edge-function
Supabase
YouTube
Supabase Edge Functions Quickstart
Introducing one of our most requested and highly-anticipated features β Edge Functions: https://supabase.com/edge-functions. Edge Functions let you execute Typescript code close to your users, no matter where theyβre located.
Resources
- Edge Functions are now available in Supabase: https://supabase.com/blog/2022/03/31/supabase-edge-functions
-...
Edge Functions Quickstart | Supabase Docs
Globally distributed TypeScript Functions.