Description
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