Skip to content

No default export from supabase/node-fetch errorΒ #1657

@richard-edwards

Description

@richard-edwards

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Recently upgraded my application to the latest nuxtjs/supabase version and have been getting this error on all pages. I have looked at node-fetch source and it does look like there is a default export so not sure why this is occurring.

I have also done a full clean and reget of all dependencies.

PostgrestBuilder.ts:2 Uncaught SyntaxError: 
The requested module '/_nuxt/node_modules/.pnpm/@[email protected]/node_modules/@supabase/node-fetch/browser.js?v=a82b1307' 
does not provide an export named 'default' (at PostgrestBuilder.ts:2:8)

System information

  • OS: linux mint
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: "@nuxtjs/supabase": "^1.1.3",
  • Version of Node.js: 18

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpostgrest-jsRelated to the postgrest-js library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions