Skip to content

Cannot find module 'tslib'Β #1788

@joshua-bouv

Description

@joshua-bouv

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

  1. npm i
  2. Building .js script

System Info

Not relevant

Used 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.js

Validations

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsupabase-jsRelated to the supabase-js library.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions