davecancode
How to import qstash into deno edge function?
Okay, so I was on the right track.
I'm importing in my edge functions like this (two separate files):
import { Client } from 'https://deno.land/x/upstash_qstash@v2.5.2/src/index.ts'
import { Receiver } from 'https://deno.land/x/upstash_qstash@v2.5.2/src/index.ts'
Which gives me this error in VS Code:
Module '"https://deno.land/x/upstash_qstash@v2.5.2/src/index.ts"' has no exported member 'Client'.deno-ts(2305)
If I try to deploy to supabase with CLI (as a test to see if my local dev environment is borked or something) I get this error:
Error: failed to load 'https://deno.land/x/upstash_qstash@v2.5.2/src/receiver': Module not found "https://deno.land/x/upstash_qstash@v2.5.2/src/receiver".
š8 replies
How to import qstash into deno edge function?
I can get this one to work for sentry:
import * as Sentry from 'https://deno.land/x/sentry/index.mjs'
and this one to work for the standard libary path module:
import { extname } from 'https://deno.land/std@0.224.0/path/mod.ts'
8 replies
How to import qstash into deno edge function?
I'm using this on supabase but they don't have examples for deno land imports: https://supabase.com/docs/guides/functions/import-maps#importing-dependencies
8 replies