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

Supabase auth import server component #48251

Closed
1 task done
victorbillaud opened this issue Apr 11, 2023 · 3 comments
Closed
1 task done

Supabase auth import server component #48251

victorbillaud opened this issue Apr 11, 2023 · 3 comments
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.

Comments

@victorbillaud
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.14.2
      npm: 9.5.0
      Yarn: 1.22.19
      pnpm: 7.30.0
    Relevant packages:
      next: 13.3.1-canary.4
      eslint-config-next: 13.3.0
      react: 18.2.0
      react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue

https://github.com/mryechkin/nextjs-supabase-auth/tree/main

To Reproduce

clone repo
run pnpm i next@latest react@latest react-dom@latest eslint-config-next@latest supabase@latest to get the latest version
run pnpm install and pnpm run dev

Describe the Bug

./node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/@vercel/og/index.node.js:17950:0
Module not found: Can't resolve 'fs'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/web/spec-extension/image-response.js
./node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/server.js
./node_modules/.pnpm/@[email protected]_azjgpjpfyzbcykafu5t4hngxtm/node_modules/@supabase/auth-helpers-nextjs/dist/index.js
./src/lib/supabase-browser.js
./src/components/AuthProvider.js

The supabase module import a server component inside the client component and it makes crash the application :/

Expected Behavior

No really excepted behavior but jsut working well. Maybe some explanations

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@victorbillaud victorbillaud added the bug Issue was opened via the bug report template. label Apr 11, 2023
@github-actions github-actions bot added the area: app App directory (appDir: true) label Apr 11, 2023
@emilianoyaryura
Copy link

any updates on this?

@KajSzy
Copy link

KajSzy commented Apr 12, 2023

This seems to be resolved by supabase team
https://github.com/supabase/auth-helpers/issues/493

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants