© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
9 replies
Bings

supabase-js: Error: Cannot find module 'tslib'

My package.json is using the latest supabase dep
"@supabase/supabase-js": "^2.76.0"
"@supabase/supabase-js": "^2.76.0"


I run
npm i
npm i
, then try to build the script, but it's getting the following error:

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
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


Anyone else getting this? (Happening both locally and on my google run platform)

I guess I can manually add the tslib dep, but I haven't had to do this previously?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase UI cannot find API keys
SupabaseSSupabase / help-and-questions
3mo ago
Module '"@supabase/supabase-js"' has no exported member 'QueryData'.ts(2305)
SupabaseSSupabase / help-and-questions
3y ago
Critical dependency error with supabase-js
SupabaseSSupabase / help-and-questions
3y ago
Supabase.js Error 413 on `select`
SupabaseSSupabase / help-and-questions
4y ago