-
Notifications
You must be signed in to change notification settings - Fork 36
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
RSC example does not work with runtime = "edge"; #113
Comments
Hi @martior, |
Checked with webpack team that exports checking needs to be applied to package. There seems no way to partially disable the exports checking for certain package (like react) in certain runtime (such as edge runtime). As apollo-client in edge runtime might still access some unexisted property for running conditional code, one solution I got from webpack team is to use |
@huozhi Thank you for the update! At this point we will probably consider using a wrapper package around React to deal with that - we can't be sure if a hack that works with one bundler today will break with the next bundler tomorrow. |
@phryneas are there any updates on this? sorry to chase .. ! |
@bashaus actually, there are! |
Fixed in the new apollo client alpha. issue tracked here apollographql/apollo-client-nextjs#113
* build(frontend): install apollo client and simplify environment variables * fix(frontend): disable apollo caching results * feat: create example client * feat: setup graphql codegen and example usage * docs: 📝 Update docs for graphQL codegen * refactor(frontend): Make blog use graphql queries with apollo * refactor: 🗑️ Remove unused code * fix: 🚑 Fix build issues with nextjs and apollo client Fixed in the new apollo client alpha. issue tracked here apollographql/apollo-client-nextjs#113 * fix: Fix styling and linting ignore files. Also style with prettier * docs: 📝 Update docs * refactor(frontend): Refactor blog article page to use graphQL * fix: fix lint error * refactor(frontend): 🔥 remove unused console logs * fix(frontend): fix undefined attributes error * fix(frontend): 🐛 try to fix undefined attributes bug * docs: 📝 Update graphql typegen docs * fix: 🐛 disable caching while developing * fix: 🐛 fix undefined error * fix: 🐛 Fix author avatar image bug
I'm doing some housekeeping so I'm closing some older issues that haven't seen activity in a while. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
importing
from a app/page.tsx with
export const runtime = "edge";
gives the following error:It works if you remove export const runtime = "edge"
The text was updated successfully, but these errors were encountered: