Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rasyidly opened this issue Mar 6, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@rasyidly
Copy link

rasyidly commented Mar 6, 2025

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 rasyidly added the bug Something isn't working label Mar 6, 2025
@kwiksource
Copy link

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'

@alireza-shabanpisheh
Copy link

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

@BinaryShrub
Copy link
Contributor

This did not resolve the problem for me

@BinaryShrub
Copy link
Contributor

supabase/ssr#62

@gabrielstuff
Copy link

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)

@MrFushion
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants