Managing Deno Imports in Supabase Edge Functions Deno Uses URL-Based Imports Unlike Node.js, Deno has no npm install . Imports are ESM URLs: // Node.js (doesn't work in Deno) import { createClient } from ' supabase ' ; // Deno (correct) import { createClient } from ' https://esm.sh/@supabase/supabase-js@2 ' ; Pin Your Versions // ❌ Unpinned — will break on next major release import { Hono } from ' https://deno.land/x/hono/mod.ts ' ; // ✅ Pinned import { Hono } from ' https://deno.land/x/hono@v4.
Liked this? Start your own feed.
Comment
Sign in to join the discussion.
Loading comments…