question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Sorting on fields that need arguments to resolve is deprecated" warning (w/ example repo)

See original GitHub issue

Following up on https://github.com/gatsbyjs/gatsby/issues/28565 I created a repo with a sample where this warning occurs:

https://github.com/rejas/deprecate_repo

Description

When building my site I get this warning:

warn The enum value "MdxFieldsEnum.fields___slug" is deprecated. Sorting on fields that need arguments to resolve is deprecated.

Steps to reproduce

Build the example repo https://github.com/rejas/deprecate_repo

Expected result

No warnings should appear

Actual result

Warnings appear

Environment

System: OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa) CPU: (8) x64 Intel® Core™ i7-8565U CPU @ 1.80GHz Shell: 5.0.17 - /bin/bash Binaries: Node: 16.1.0 - ~/.nvm/versions/node/v16.1.0/bin/node Yarn: 1.22.5 - /snap/bin/yarn npm: 7.11.2 - ~/.nvm/versions/node/v16.1.0/bin/npm Browsers: Chrome: 90.0.4430.212 Firefox: 88.0.1 npmPackages: gatsby: ^3.5.1 => 3.5.1 gatsby-background-image: ^1.5.3 => 1.5.3 gatsby-plugin-feed: ^3.5.0 => 3.5.0 gatsby-plugin-image: ^1.5.0 => 1.5.0 gatsby-plugin-manifest: ^3.5.0 => 3.5.0 gatsby-plugin-mdx: ^2.5.1 => 2.5.1 gatsby-plugin-no-sourcemaps: ^3.5.0 => 3.5.0 gatsby-plugin-offline: ^4.5.1 => 4.5.1 gatsby-plugin-react-helmet: ^4.5.0 => 4.5.0 gatsby-plugin-robots-txt: ^1.6.2 => 1.6.2 gatsby-plugin-sharp: ^3.5.0 => 3.5.0 gatsby-plugin-sitemap: ^4.1.0 => 4.1.0 gatsby-remark-copy-linked-files: ^4.2.1 => 4.2.1 gatsby-remark-images: ^5.2.1 => 5.2.1 gatsby-source-filesystem: ^3.5.0 => 3.5.0 gatsby-theme-material-ui: ^2.0.1 => 2.0.1 gatsby-transformer-sharp: ^3.5.0 => 3.5.0 gatsby-transformer-yaml: ^3.5.0 => 3.5.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:15
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
phun-kycommented, Jan 10, 2022

Issue still persists, need documentation on how to use slug for sorting (or equivalent)

0reactions
mbcod3commented, Mar 3, 2022

graphql shows warning if you use field to sort that was created using gatsby api creatNodeField

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linters | golangci-lint
Name Description Presets Since asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0 bidichk ⚙️ Checks for dangerous unicode character sequences...
Read more >
Sort search results | Elasticsearch Guide [7.17] | Elastic
Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on...
Read more >
deprecation — deprecation 2.0.6 documentation
deprecation is a library that enables automated deprecations. It offers the deprecated() decorator to wrap functions, providing proper warnings both in ...
Read more >
Upgrading your build from Gradle 6.x to the latest
Some plugins will break with this new version of Gradle, for example ... Gradle emits a deprecation warning when jcenter() is used as...
Read more >
Configuration Options - Renovate Docs
Warning. Storing the Renovate configuration in a package.json file is deprecated and support may be removed in the future. When renovating a repository, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found