Can't use createClient in Edge Function (can't find tslib)
Below is my code. I have confirmed that the env vars are set. The error is specifically coming from the
createClient line .. when I comment it out, there's no error.
The specific error is this:
And here is the code
4 Replies
There is a bug potentially in 1.76.0 released earlier today.
GitHub
Cannot find module 'tslib' · Issue #1788 · supabase/supabase-js
Describe the bug Unable to run my javascript file when using the latest version of supabase-js, 2.76.0. When rolling back to the previous version, 2.75.1, the issue goes away. Happening both locall...
Thank you for letting me know!
Confirmed that using
import { createClient } from 'npm:@supabase/supabase-js@2.75.1'; does seem to fix it. AwesomePlease add comment at link and mention edge functions impacted.