esm.sh
esm.sh copied to clipboard
Failed to import - @supabase/supabase-js
Failing module
- GitHub: https://github.com/supabase/supabase-js
- npm: https://www.npmjs.com/package/@supabase/supabase-js
import { createClient } from "https://esm.sh/@supabase/supabase-js"
Error message
After running deno run I get this:
error: Relative import path "@supabase/gotrue-js" not prefixed with / or ./ or ../ from "https://cdn.esm.sh/v57/@supabase/[email protected]/dist/main/lib/types.d.ts"
Additional info
- esm.sh version: v57
- Deno version: 1.15.3
@roseMix try ?no-check argument, i'll look into it! thanks
Thanks @ije works to get by original error, but now I'm getting this:
ReferenceError: XMLHttpRequest is not defined
at https://cdn.esm.sh/v57/[email protected]/deno/cross-fetch.js:2:7654
at new Promise (<anonymous>)
at _ (https://cdn.esm.sh/v57/[email protected]/deno/cross-fetch.js:2:7522)
at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:861
at new Promise (<anonymous>)
at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:841
at Generator.next (<anonymous>)
at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:356
at new Promise (<anonymous>)
at y (https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:153)
As far as I know there no known polyfill for XMLHttpRequest so I assume it's just unfixable at this point.
Thanks anyways!
Thanks @ije works to get by original error, but now I'm getting this:
ReferenceError: XMLHttpRequest is not defined at https://cdn.esm.sh/v57/[email protected]/deno/cross-fetch.js:2:7654 at new Promise (<anonymous>) at _ (https://cdn.esm.sh/v57/[email protected]/deno/cross-fetch.js:2:7522) at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:861 at new Promise (<anonymous>) at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:841 at Generator.next (<anonymous>) at https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:356 at new Promise (<anonymous>) at y (https://cdn.esm.sh/v57/@supabase/[email protected]/deno/gotrue-js.js:2:153)As far as I know there no known polyfill for
XMLHttpRequestso I assume it's just unfixable at this point.Thanks anyways!
There is a package called xhr on https://deno.land/x/xhr
now we add the xhr polyfill automatically for corss-fetch