davecancode
davecancode
DDeno
Created by davecancode on 5/17/2024 in #help
How to import qstash into deno edge function?
šŸ†
I was able to get around this issue by using the npm style import: import { Receiver } from 'npm:@upstash/qstash' šŸ¤·
8 replies
DDeno
Created by davecancode on 5/17/2024 in #help
How to import qstash into deno edge function?
If I try it with mod.ts instead I get this error in VS Code: Uncached or missing remote URL: https://deno.land/x/upstash_qstash@v2.5.2/src/mod.ts
8 replies
DDeno
Created by davecancode on 5/17/2024 in #help
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
DDeno
Created by davecancode on 5/17/2024 in #help
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
DDeno
Created by davecancode on 5/17/2024 in #help
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