You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, the type-defs are no longer accurate post Relay 1.0.
On our project, we've copy/pasted the types and put them under react-relay/classic — the pre-1.0 types are basically 1:1 with what's in classic now. Unfortunately, building out types for modern is a big undertaking.
@voxmatt thanks for the note. I can confirm that I can use the classic typings by copying the node_modules/@types/react-relay folder into <app root>/custom_typings/react-relay/classic and then adding the typeRoots key to mytsconfig.json
"@types/react-relay": "^0.9.13",
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.Seeing this error with the latest version of relay and the latest typings
Given the following
package.json
:The following class, taken directly from the
react-relay-tests.tsx
will throw an error when you try to instantiate it.The text was updated successfully, but these errors were encountered: