Skip to content
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

cookie/index.js does not provide an export named 'parse' helpers.js #62

Open
phillipmohr opened this issue Sep 6, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@phillipmohr
Copy link

phillipmohr commented Sep 6, 2024

Bug report

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

Describe the bug

Getting Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/[email protected]/node_modules/cookie/index.js?v=1eda2991' does not provide an export named 'parse' (at helpers.js?v=1eda2991:1:10) in my Nuxt application.

File location where error is thrown: http://localhost:3000/_nuxt/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@supabase/ssr/dist/module/utils/helpers.js?v=1eda2991

A clear and concise description of what the bug is.
See error message.

I had this issue before and I think I fixed it by manually editing the node_modules and change this line:
import {parse as cookieParse, serialize as cookieSerialize} from "/_nuxt/node_modules/.pnpm/[email protected]/node_modules/cookie/index.js?v=1eda2991"; to this

const { parse: cookieParse, serialize: cookieSerialize } = require("cookie");

Since then I have forgot about it. Now it's happening again because it was just a temp local fix.

I wanted to retry if editing the helpers.js in the node_modules would fix it again but now for some reason my changes in the node modules are not being applied. I have spent countless hours into figuring out why.

So unfortunately as of now this is all the information I can give you about this bug. Maybe someone else experiences the same issue.

I'm using the @nuxtjs/supabase module.

System information

  • OS: macOS
  • Browser (if applies) Google Chrome
  • Version of supabase-js: 2.39.0
  • Version of Node.js: v22.2.0
    -Version of @nuxtjs/supabase: 1.1.6
@phillipmohr phillipmohr added the bug Something isn't working label Sep 6, 2024
@j4w8n
Copy link
Contributor

j4w8n commented Sep 6, 2024

I believe you'll want to open an issue on their repo, as that library is not part of Supabase.
https://github.com/nuxt-modules/supabase/issues

@phillipmohr
Copy link
Author

I believe you'll want to open an issue on their repo, as that library is not part of Supabase. https://github.com/nuxt-modules/supabase/issues

Sorry I forgot to mention that the error occurs in http://localhost:3000/_nuxt/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@supabase/ssr/dist/module/utils/helpers.js?v=1eda2991 which is this library, right?

@j4w8n
Copy link
Contributor

j4w8n commented Sep 6, 2024

Ah, yes.

To clarify, are you importing parse or serialize into your code?

@phillipmohr
Copy link
Author

Ah, yes.

To clarify, are you importing parse or serialize into your code?

No, I'm not importing parse or serialize.

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

2 participants