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
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
Have you checked if serve has been imported correctly?
Domcario
Domcarioβ€’2y ago
i assume yes because my code works and deploys, but i havent explicitly tested
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
I haven't used Deno myself, so I am not an expert, but I would try this first:
Domcario
Domcarioβ€’2y ago
done but not solved
Domcario
Domcarioβ€’2y ago
nothing :/ but i get cmd+click when i hover over the deno.land url
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
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)
Domcario
Domcarioβ€’2y ago
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.
Want results from more Discord servers?
Add your server