-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Error: Cannot create as TypeComposer the following value: Date. #23062
Comments
Can you try removing node_modules and reinstalling? Something is breaking the schema creation and it doesn't seem like any of those dependencies would do that. |
I tried this solution but didn't work. I will try one more time |
Hi! Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it. If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look. Thanks for using Gatsby! 💜 |
I have the same issue after update graphql to 15.0.0 |
No, uninstalled Apollo and refused to solve it :/ |
In case it helps anyone, I had this issue last night. The solution that seemed to work for me was to delete both the node_modules folder and the package-lock.json file, and then reinstall. |
You probably want to make sure only one grapqhl version is inside your project. try running
If you have multiple, please use yarn resolutions or remove your lock file and node_modules. We're marking this issue as answered and closing it for now but please feel free to reopen this and comment if you would like to continue this discussion. We hope we managed to help and thank you for using Gatsby! 💜 |
For those who will face this issue, I found out that you simply need to install older version of GraphQL. In my case, I had to install |
Installing |
For me, it wasn't downdating Graphql from v15.0 (the latest) to v14.6.0, the solution was in updating Gatsby from v2.21 to v2.23.1 (the latest). |
I think the issue was having a different graphql version installed. |
Description
While running 'gatsby develop' everything works till graphql schema is going to be built. Then it throws error.
Steps to reproduce
Everything worked well until I installed Apollo dependencies and plugin
Expected result
Error shouldn't appear and app should work
Actual result
Error when building graphql schema
Environment
The text was updated successfully, but these errors were encountered: