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
tl;dr we are seeing Type 'RelayModernEnvironment' is not assignable to type 'Environment'. after upgrading even with code right from docs.
We are attempting to upgrade from react-relay 14.x to 16.0.0. Our dependencies are now: react-relay 16.0.0, relay-runtime 16.0.0, @types/react-relay 16.0.0, @types/relay-runtime 14.1.15, babel-plugin-relay 16.0.0, relay-compiler 16.0.0.
We are seeing Type 'RelayModernEnvironment' is not assignable to type 'Environment'. with all our uses of environment.
Because this is just passing in the environment directly from new Environment(..) as the docs show I'm not sure what the issue is with the RelayModernEnvironment vs Environment
The text was updated successfully, but these errors were encountered:
If this is the same problem, and DefinitelyTyped hasn't been updated to support the latest relay types, does this mean people with TypeScript and relay 15/16 are not using DefinitelyTyped (or that not many people are using TS on the latest version)?
tl;dr we are seeing
Type 'RelayModernEnvironment' is not assignable to type 'Environment'.
after upgrading even with code right from docs.We are attempting to upgrade from react-relay 14.x to 16.0.0. Our dependencies are now: react-relay 16.0.0, relay-runtime 16.0.0, @types/react-relay 16.0.0, @types/relay-runtime 14.1.15, babel-plugin-relay 16.0.0, relay-compiler 16.0.0.
We are seeing
Type 'RelayModernEnvironment' is not assignable to type 'Environment'.
with all our uses of environment.I simplified the case by copying this set up right from the docs for RelayEnvironmentProvider here:
Because this is just passing in the environment directly from
new Environment(..)
as the docs show I'm not sure what the issue is with the RelayModernEnvironment vs EnvironmentThe text was updated successfully, but these errors were encountered: