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

Next 14 App router AsyncLocalStorage From middleware to server component #69298

Open
KevinEonix opened this issue Aug 26, 2024 · 0 comments
Open
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc. Middleware Related to Next.js Middleware.

Comments

@KevinEonix
Copy link

Link to the code that reproduces this issue

https://github.com/KevinEonix/next-asyncLocalStorage

To Reproduce

  1. start npm run dev
  2. access the default page
  3. message rendered is Context is undefined :(

Current vs. Expected behavior

The phrase should be test value in store is test value

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32370
  Available CPU cores: 12
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.6 // Latest available version is detected (14.2.6).
  eslint-config-next: 14.2.6
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Developer Experience, Middleware

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I tested that on an other project and have the same problem (same machine sane versions)

@KevinEonix KevinEonix added the bug Issue was opened via the bug report template. label Aug 26, 2024
@github-actions github-actions bot added Developer Experience Issues related to Next.js logs, Error overlay, etc. Middleware Related to Next.js Middleware. labels Aug 26, 2024
@vercel vercel deleted a comment Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc. Middleware Related to Next.js Middleware.
Projects
None yet
Development

No branches or pull requests

2 participants
@KevinEonix and others