zth / rescript-relay

Use Relay with ReScript.
https://rescript-relay-documentation.vercel.app/docs/getting-started
337 stars 50 forks source link

Compile error with rescript-reason v2 and ReScript 11 rc.4 #468

Closed jderochervlk closed 7 months ago

jderochervlk commented 11 months ago

Example reproduction in this repo.

Trying to do new setup and came across this error.

 We've found a bug for you!
  /home/josh/Dev/relay-esm/node_modules/rescript-relay/src/RescriptRelay.res

  The implementation /home/josh/Dev/relay-esm/node_modules/rescript-relay/src/RescriptRelay.res
  does not match the interface src/RescriptRelay.cmi:
  ...
  In module Context.Provider:
  The type `props' is required but not provided
  /home/josh/Dev/relay-esm/node_modules/rescript-relay/src/RescriptRelay.resi:814:5-817:5:
    Expected declaration
DZakh commented 10 months ago

I think you need to use "@rescript/react": "0.12.0-alpha.2"

zth commented 7 months ago

Closing this, feel free to open if still not working.