supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Uncaught SyntaxError: The requested module './node_modules/@supabase/ssr/node_modules/cookie/index.js' does not provide an export named 'parse'

Open rasyidly opened this issue 10 months ago • 7 comments

Hi, i just installed a newly fresh Nuxt + Nuxt UI + Supabase module, here my dependencies version;

Version


  "dependencies": {
    "@nuxt/ui": "^3.0.0-beta.2",
    "@nuxtjs/supabase": "^1.5.0",
    "nuxt": "^3.15.4",
    "vue": "^3.5.13",
    "vue-router": "^4.5.0"
  }

I have written required .env file with and no supabase config at nuxt.config.ts

When I check browser developer console, i got this error. I don't know what the reason, because I just installing this in fresh

Uncaught SyntaxError: The requested module
'/_nuxt/@fs/Users/user/nuxt/app/node_modules/@supabase/ssr/node_modules/cookie/index.js
v=582478bb' does not provide an export named 'parse' (at helpers.js?v=582478bb:1:10)

What is Expected?

Should no error on console

rasyidly avatar Mar 06 '25 06:03 rasyidly

I have the similar problem on a brand new project.

Used the following to install npx nuxi@latest module add supabase

json package: "@nuxtjs/supabase": "^1.5.0", "nuxt": "^3.15.4", "vue": "^3.5.13",

Error: Uncaught SyntaxError: The requested module '/_nuxt/node_modules/@supabase/ssr/node_modules/cookie/index.js?v=a899fb98' does not provide an export named 'parse'

kwiksource avatar Mar 06 '25 08:03 kwiksource

Hi, delete the node_modules folder and package-lock.json file. Run npm i again and the error will be resolved.

alireza-shabanpisheh avatar Mar 09 '25 15:03 alireza-shabanpisheh

This did not resolve the problem for me

BinaryShrub avatar Mar 14 '25 04:03 BinaryShrub

https://github.com/supabase/ssr/issues/62

BinaryShrub avatar Mar 14 '25 04:03 BinaryShrub

For references, you need to edit your package.json and add :

{
"resolutions": {
	"cookie": "0.7.2"
}
}

Delete node_modules folder, .nuxt folder and package-lock.json, then run npm i see https://github.com/supabase/ssr/issues/62#issuecomment-2772370670

gabrielstuff avatar Apr 11 '25 12:04 gabrielstuff

For references, you need to edit your package.json and add :

{ "resolutions": { "cookie": "0.7.2" } } Delete node_modules folder, .nuxt folder and package-lock.json, then run npm i see supabase/ssr#62 (comment)

Thanks, that worked for me

MrFushion avatar Apr 21 '25 22:04 MrFushion

Same ! Thank you

MCYouks avatar May 16 '25 08:05 MCYouks