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
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?
4 Replies
garyaustin
garyaustin5h ago
If you go back to 2.75.1 does it work? 2.76.0 was released an hour ago. I can't test my JS setup as not even on the CDN yet.
Bings
BingsOP5h ago
rolling back to 2.75.1 works fine 👍
garyaustin
garyaustin5h ago
If you want to report an error here is the spot... https://github.com/supabase/supabase-js/issues No reports there yet.
Bings
BingsOP5h ago
created 👍

Did you find this page helpful?