Sorry for the long delay but I was busy, and I didn’t have time to replicate it properly
I assume with Rescript 11 it should be uncurried by default, but I added
"uncurried": true,
to rescript.json
just in case.
I took the default rescript project setup npm create rescript-app@latest
with the newest versions and installed rescript-relay
exactly as described in Getting Started section.
I added a simple schema and created repro repository (query in src/App.res
).
What I got:
FAILED: src/App.cmj
We've found a bug for you!
/path/test-relay/src/App.res:1:16-9:2
1 │ module Query = %relay(`
2 │ query AppQuery {
. │ ...
8 │ }
9 │ `)
10 │
11 │ @react.component
This function is a curried function where an uncurried function is expected
FAILED: cannot make progress due to previous errors.
I tested it with:
- node: v20.10.0
- npm: 10.2.3
- yarn: 1.22.21
- OS: Ubuntu 22.04.4 LTS (WSL)
I also tried adding -uncurried
to bsc-flags
, and with @@uncurried
at the top of the file and RescriptRelay "3.0.0-rc.4"
with no result.