From the supabase docs it shows an example of importing via npm::
e.g.
import React from 'npm:[email protected]'
import { Webhook } from 'https://esm.sh/[email protected]'
import { Resend } from 'npm:[email protected]'
import { renderAsync } from 'npm:@react-email/[email protected]'
see https://supabase.com/docs/guides/functions/examples/auth-send-email-hook-react-email-resend
However when I try that in my function, e.g.
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import {
IRequestBody,
sendMail,
} from "https://deno.land/x/[email protected]/mod.ts";
import { getDomain, getEnvironmentVariable } from "../_shared/utils.ts";
import { renderAsync } from "npm:@react-email/[email protected]";
import React from "npm:[email protected]";
it fails and says:
Failed to load module: "npm:[email protected]" - Unsupported scheme "npm" for module "npm:[email protected]". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
InvalidWorkerCreation: worker boot error
So you cant import via :npm?
1