SupabaseS
Supabase2mo ago
Bings

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

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

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


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?
Was this page helpful?