You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] "does not provide an export named 'parse'" with cookie@1.0.2 in Nuxt 4 #137
likely cause - an ESM/CJS interop mismatch when importing cookie (named parse) during SSR with Nuxt/Vite + pnpm. At runtime the resolved module shape doesn’t expose parse as a named export.
workarounds:
pin cookie to a CJS version:
cookie@0.5.0
Reinstall and re-run.
if patching locally, switch to an interop‑safe import:
suggestion - update @supabase/ssr to use an interop‑safe cookie import or align the SSR build so it works consistently across cookie 0.5.x/1.x and common bundlers.
This issue has been automatically marked as stale because it has not had any activity for 6 months.
It will be closed in 30 days if no further activity occurs.
If this is still relevant, please comment to keep it open.
Activity
nilesh-ProdE commentedon Oct 31, 2025
Some more context after exploring further -
likely cause - an ESM/CJS interop mismatch when importing
cookie(namedparse) during SSR with Nuxt/Vite + pnpm. At runtime the resolved module shape doesn’t exposeparseas a named export.workarounds:
pin
cookieto a CJS version:Reinstall and re-run.
if patching locally, switch to an interop‑safe import:
suggestion - update
@supabase/ssrto use an interop‑safecookieimport or align the SSR build so it works consistently acrosscookie0.5.x/1.x and common bundlers.FlorianJoseph commentedon Nov 1, 2025
Aucune des 2 solutions ne résoute le problème
Hallidayo commentedon Nov 1, 2025
Transferred from supabase repo.
popadicbranislav commentedon Nov 2, 2025
Is this duplicate of the #62 ?
FlorianJoseph commentedon Nov 2, 2025
Thanks @popadicbranislav for your help, i'll try to downgrade Nuxt 4.2.0 for Nuxt 4.1.3 and reply later
FlorianJoseph commentedon Nov 2, 2025
@popadicbranislav thank you so much, my project works again if i downgrade Nuxt 4.2.0 -> 4.1.3
gergely-xyz commentedon Jan 28, 2026
The issue is still present with Nuxt 4.3.0. What worked for me as a workaround is aliasing 'cookie' to 'cookie-es'.
And in your
nuxt.config.tsadd the aliases like so:Psycarlo commentedon Feb 19, 2026
Facing same issue. I'm using:
bun
nuxt
^4.3.1@nuxtjs/supabase
^2.0.3#137 (comment) worked for me
github-actions commentedon Sep 4, 2026
This issue has been automatically marked as stale because it has not had any activity for 6 months.
It will be closed in 30 days if no further activity occurs.
If this is still relevant, please comment to keep it open.