-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
with-apollo example issue #8263
Comments
@rinkusam12 Can you provide a reproduction of the issue? also are you using apollo hooks? |
What I have done is copied the lib folder to my specified project. If you think its a problem with my config file then, const withSass = require('@zeit/next-sass');
} module.exports = withPlugin([
], nextConfig); |
and no I am not using apollo hooks. |
@lfades solved it, It was a problem with AppTree component from the canary branch. So, I tried the code from master branch which is implemented without the AppTree component and it worked fine without any errors. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
When setting up graphql for next js for my project, I tried following the example of with-apollo on next js repository. When I run my project although my project don't crash but, I get an error on terminal saying "Error while running getDataFromTree { Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
Here is a screenshot of the error:

The text was updated successfully, but these errors were encountered: