js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

False positive schema validation errors: 'X' type tried to redefine existing 'X' type

Open simPod opened this issue 2 years ago • 3 comments

Describe the bug I'm getting invalid schema validation errors:

image

To Reproduce

  1. Have .graphqls file
"""The `DateTime` scalar type represents time data, represented as an ISO-8601 encoded UTC date string."""
scalar DateTime
  1. DateTime is underlined red and gives the error above

Expected behavior

No error

Version and Environment Details Operation system: macos IDE name and version: 2021.3 Plugin version: 3.0.0

simPod avatar Dec 08 '21 10:12 simPod

Hi! What happens if you click "navigate to related definition" in the description? Do you have multiple type declarations with the same name?

vepanimas avatar Dec 08 '21 14:12 vepanimas

@vepanimas oh, lol :D

I have two different schemas in two .graphqls files in the same project and duplicates are checked across them.

simPod avatar Dec 10 '21 09:12 simPod

Confirmed on 3.1.2

simPod avatar Dec 13 '21 13:12 simPod