-
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
"Sorting on fields that need arguments to resolve is deprecated" warning #28565
Comments
Hey @cedricdelpoux Do you use schema customization by chance? If so, double check that you don't have arguments defined for this field (e.g. by checking the field If you are absolutely positive that this field has no arguments - please provide a minimal reproduction and we'll be able to take another look. |
Interesting. Can you provide a minimal reproduction. I'll take a look. |
I've seen a similar warning when using By the way, the fields I'm using are from schema customization. Is there any way to use fields created by schema customization in |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
This is possible if there are custom arguments on those fields. But it doesn't look this way from your screenshots. I checked it on our starters and I don't see this problem. So we do need a minimal reproduction to actually start investigating this. |
@vladar , What does custom argument mean? Could you please show an example? |
Hi. I'm going to close this now, as we can't do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do reopen the issue. Thanks! |
I get this warning too when building my personal homepage (https://github.com/rejas/veeck.de) Will try to get a minimal reproduction done.... |
hi @ascorbic I created a repo with hopefully minimal code around it. You can find it in https://github.com/rejas/deprecate_repo or should I open a new issue with this sicne I am not the OP ? Thx in advance |
Hi @rejas, |
Will do, thanks anyway! |
Description
If I create a node field using
createNodeField
from a node value:Then I want to use this field to group my nodes
There is the following warning
If I use the original data (which is the same), everything is fine
Steps to reproduce
Expected result
No warning, it should works
Actual result
Sorting on fields that need arguments to resolve is deprecated
Environment
System:
OS: macOS 11.0.1
CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.2.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.0.10 - /usr/local/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 87.0.4280.88
Firefox: 72.0.2
Safari: 14.0.1
npmPackages:
gatsby: ^2.28.0 => 2.28.0
The text was updated successfully, but these errors were encountered: