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

getBlitzContext unusable in api #4310

Closed
gengjiawen opened this issue Mar 11, 2024 · 2 comments · Fixed by #4311
Closed

getBlitzContext unusable in api #4310

gengjiawen opened this issue Mar 11, 2024 · 2 comments · Fixed by #4311

Comments

@gengjiawen
Copy link
Contributor

gengjiawen commented Mar 11, 2024

This will result in build failed.

Attempted import error: 'setupBlitzServer' is not exported from '@blitzjs/next' (imported as 'setupBlitzServer').

Originally posted by @gengjiawen in #4303 (comment)

Minimal repro: gengjiawen/blitzjs-demo@064bdde

direct debug link: https://gitpod.io/?autostart=true#https://github.com/gengjiawen/blitzjs-demo/commit/064bddecd9c0ba6e4fbd3bbb7d0a7944b3eea456

@gengjiawen
Copy link
Contributor Author

@siddhsuresh @flybayer

@gengjiawen
Copy link
Contributor Author

I figure it out on my own, turns out this can be used only on app router api, not available on page router api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants