facebook / facebook/relay

Internal Error: Unexpected extension kind: 'InputObjectTypeDefinition'

Open
#3,324 11 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

When building using the babel plugin, it fails with the error `Module not found: Internal Error: Unexpected extension kind: 'InputObjectTypeDefinition'`.

![CleanShot 2021-01-16 at 06 51 48](https://user-images.githubusercontent.com/71785758/104795960-8667f380-57c7-11eb-95ad-9c74a46b938f.png)

I have only one graphql version in my yarn lock file:
```
"resolutions": {
"graphql": "^15.4.0"
},
```

And here's the schema:
```
### This file was generated by Nexus Schema
### Do not make changes to this file directly

type Chat implements Node {
createdAt: DateTime
iconEmoji: String
id: GlobalID!
spaceId: GlobalID
title: String
}

input ChatsInput {
spaceId: GlobalID
}

"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime

"""
A globally unique node id consisting of type:id
"""
scalar GlobalID

interface Node {
id: GlobalID!
}

type Query {
chats(input: ChatsInput): Chat
hello(name: String): String
}

type Subscription {
greetings: [String]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.