Private npm packages cannot be imported in edge functions: npm package '@org/package' does not exist.
#402
Labels
npm package '@org/package' does not exist.
#402
Bug report
Not clear if this is a bug report or feature request;
deno
has added this functionality but I don't understand the implications for the edge runtime and whether this support indeno
means it should automatically be supported or not.Describe the bug
Deno now supports private registries, but
supabase
's localsupabase functions serve
does not seem to.I have a private package in my
package.json
, my editor is happy with the import, and I can run it directly withDeno
usingdeno run --allow-net supabase/functions/auth/index.ts
but when running viasupabase functions serve
and invoking viacurl
I receive output like the followingTo Reproduce
package.json
, e.g.npm i @org/package
where@org/package
is a private package that you have access to; this may require you to configure your~/.npmrc
appropriately e.g. as described in thedeno
docs.supabase functions serve
curl
Expected behavior
The private npm package should be imported.
Screenshots
N/A
System information
Additional context
deno
added support recently in denoland/deno#16105; when running the function code directly indeno
I tested with these versionsI've also tried shifting the relevant
.npmrc
which configures the private registry and access token around from~/
tosupabase
andsupabase/functions
but with no change in results.The text was updated successfully, but these errors were encountered: