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 15 error when using getBlitzContext #4388

Open
stijnvanderlaan opened this issue Nov 12, 2024 · 3 comments · May be fixed by #4387
Open

Next 15 error when using getBlitzContext #4388

stijnvanderlaan opened this issue Nov 12, 2024 · 3 comments · May be fixed by #4387
Labels
kind/bug Something isn't working status/triage

Comments

@stijnvanderlaan
Copy link

stijnvanderlaan commented Nov 12, 2024

What is the problem?

I get an error

Paste all your error logs here:

Route "/" used `...headers()` or similar iteration. `headers()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis

Run blitz -v and paste the output here:

Blitz version: 2.0.0-beta.30 (global)
Blitz version: 2.1.2 (local)
macOS | darwin-arm64 | Node: v20.11.0


 Package manager: npm

  System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 98.75 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v20.11.0/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
  npmPackages:
    @blitzjs/auth: Not Found
    @blitzjs/next: Not Found
    @blitzjs/rpc: Not Found
    @prisma/client: Not Found
    blitz: Not Found
    next: Not Found
    prisma: Not Found
    react: Not Found
    react-dom: Not Found
    typescript: 5.3.3 => 5.3.3 

➜  app git:(main) ✗ blitz - v
Loaded env from /Users/stijnvanderlaan/Workspace/demonsters/stringtale/stringtale-mono/apps/app/.env.local
Error: Cannot find module '-'
Require stack:
- /Users/stijnvanderlaan/Workspace/demonsters/stringtale/stringtale-mono/apps/app/noop.js
➜  app git:(main) ✗ blitz -v 
Blitz version: 2.0.0-beta.30 (global)
Blitz version: 2.1.2 (local)
macOS | darwin-arm64 | Node: v20.11.0


 Package manager: npm

  System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 300.11 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v20.11.0/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
  npmPackages:
    @blitzjs/auth: Not Found
    @blitzjs/next: Not Found
    @blitzjs/rpc: Not Found
    @prisma/client: Not Found
    blitz: Not Found
    next: Not Found
    prisma: Not Found
    react: Not Found
    react-dom: Not Found
    typescript: 5.3.3 => 5.3.3 

Please include below any other applicable logs and screenshots that show your problem:

No response

@stijnvanderlaan stijnvanderlaan added kind/bug Something isn't working status/triage labels Nov 12, 2024
@siddhsuresh
Copy link
Member

will be fixed in #4387

@siddhsuresh siddhsuresh linked a pull request Nov 13, 2024 that will close this issue
5 tasks
@stijnvanderlaan
Copy link
Author

I added a suggestion to ensure compatibility with older versions. Hopefully, this helps move the update forward.

@stijnvanderlaan
Copy link
Author

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants