Closed puchm closed 1 year ago
@jquense I am tagging you here since I saw you did the recent conversion to Typescript - maybe you can help?
@puchm , I'm having the same error, and can't get things up and running. Is it just a TS error for you? (i.e. can you get around it with a // @ts-ignore
?
Yes, I got around it by ignoring the error. Worked fine for me on a decently big project. If you are running React 18 you also need to run in React 17 compatible mode because of an issue with found itself, see 4Catalyzer/found#968
i've updated found-relay to have a peer dep on these types, so this should happen anymore
same issue here
Hi,
This is how I am using found-relay:
index.tsx
Router.tsx
My Relay environment is configured pretty much as documented in Relay's getting started docs:
setup/relay.ts
I am getting two typescript errors in index.tsx:
At
RelayEnvironment
(the arg forResolver
):At
resolver=
:I am using the following versions:
Am I doing something wrong? I have tried various type casts but I have not gotten it to work.