-
Notifications
You must be signed in to change notification settings - Fork 501
Closed
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.
Description
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 locally and on my Google Run platform
Library affected
supabase-js
Reproduction
To recreate, I just had a very simple javascript file (see below), and this was enough to trigger the error
const { createClient } = require('@supabase/supabase-js');
const supabaseUrl = process.env.SUPABASE_URL;
const supabaseKey = process.env.SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey);Steps to reproduce
npm i- Building .js script
System Info
Not relevantUsed Package Manager
npm
Logs
Error: Cannot find module 'tslib'
Require stack:
- /usr/src/app/node_modules/@supabase/functions-js/dist/main/FunctionsClient.js
- /usr/src/app/node_modules/@supabase/functions-js/dist/main/index.js
- /usr/src/app/node_modules/@supabase/supabase-js/dist/main/SupabaseClient.js
- /usr/src/app/node_modules/@supabase/supabase-js/dist/main/index.jsValidations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Supabase JS Library issue and not an issue with the Supabase platform. If it's a Supabase platform related bug, it should likely be reported to supabase/supabase instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
mandarini
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.