developit / unfetch

🐕 Bare minimum 500b fetch polyfill.
https://npm.im/unfetch
MIT License
5.71k stars 200 forks source link

supabase V2.0.0 after update on Nuxt 3 problem cross-fetch #157

Closed FileSoft-us closed 1 year ago

FileSoft-us commented 2 years ago

const supabase = createClient(url, key) will show error as the following node_modules/cross-fetch/dist/browser-ponyfill.js?v=fdd8f129' does not provide an export named 'default' (at PostgrestBuilder.ts:1:8)

anyone have solution for this

developit commented 1 year ago

If this is caused by unfetch at all (not sure if cross-fetch uses unfetch?), the default export behavior will have changed as of unfetch 5.0.0.