#Imported NPM package cannot find fs module

1 messages · Page 1 of 1 (latest)

zealous brook
#

I'm using npm:@resvg/resvg-js in Netlify Edge Functions (powered by Deno) but it errors saying that it can't find the fs module. I thought Deno was supposed to support things like this?

visual finch
#

My understanding is that Edge Functions is powered by Deno Deploy, and Deploy doesn't yet support npm modules

zealous brook
#

i can only find that it doesn't support the npm: specifier. deno's compatibility should still work though?

#

yeah, using esm.sh actually breaks further