$ node_modules/.bin/rescript -version
11.0.0-rc.5
$ node_modules/.bin/rescript
>>>> Start compiling
Different compiler version: clean current repo
Cleaning... 6 files.
Cleaning... 18 files.
Cleaning... 168 files.
Cleaning... 12 files.
Cleaning... 0 files.
Dependency on @kaiko.io/rescript-prelude
rescript: [3/3] src/Prelude.cmj
rescript: [5/5] install.stamp
Dependency on @kaiko.io/rescript-deser
rescript: [3/3] src/JSON.cmj
rescript: [5/5] install.stamp
Dependency on @kaiko.io/rescript-reindexed
rescript: [78/78] src/ReIndexed.cmj
rescript: [105/105] install.stamp
Dependency on @merchise/rescript-action-queue
rescript: [3/3] src/ActionQueue.cmj
rescript: [5/5] install.stamp
Dependency on @rescript/react
rescript: [55/55] src/v3/ReactV3.cmj
rescript: [71/71] install.stamp
Dependency on @rescript-mui/material
rescript: [257/415] src/components/Theme-Mui.cmj
FAILED: src/components/Theme-Mui.cmj
We've found a bug for you!
/home/manu/tmp/r11rc5-mui/node_modules/@rescript-mui/material/src/components/Theme.res:12:3-34
10 │ type breakpoint =
11 │ | Point(float)
12 │ | Func(string => ThemeOptions.t)
13 │
14 │ type t_breakpoints = {
This untagged variant definition is invalid: Case Func has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads.
rescript: [295/415] src/components/Zoom-Mui.cmj
FAILED: cannot make progress due to previous errors.
Failure: /home/manu/tmp/r11rc5-mui/node_modules/rescript/linux/ninja.exe
Location: /home/manu/tmp/r11rc5-mui/node_modules/@rescript-mui/material/lib/bs
Strangely, I can compile the rescript-mui project without issues.
$ node_modules/.bin/rescript clean
Cleaning... 5 files.
Cleaning... 5 files.
Cleaning... 130 files.
Cleaning... 5 files.
Cleaning... 80 files.
Cleaning... 328 files.
Cleaning... 0 files.
$ node_modules/.bin/rescript
>>>> Start compiling
Dependency on @kaiko.io/rescript-prelude
rescript: [3/3] src/Prelude.cmj
rescript: [5/5] install.stamp
Dependency on @kaiko.io/rescript-deser
rescript: [3/3] src/JSON.cmj
rescript: [5/5] install.stamp
Dependency on @kaiko.io/rescript-reindexed
rescript: [78/78] src/ReIndexed.cmj
rescript: [105/105] install.stamp
Dependency on @merchise/rescript-action-queue
rescript: [3/3] src/ActionQueue.cmj
rescript: [5/5] install.stamp
Dependency on @rescript/react
rescript: [55/55] src/v3/ReactV3.cmj
rescript: [71/71] install.stamp
Dependency on @rescript-mui/material
rescript: [256/415] src/components/Theme-Mui.cmj
FAILED: src/components/Theme-Mui.cmj
We've found a bug for you!
/home/manu/tmp/r11rc5-mui/node_modules/@rescript-mui/material/src/components/Theme.res:12:3-34
10 │ type breakpoint =
11 │ | Point(float)
12 │ | Func(string => ThemeOptions.t)
13 │
14 │ type t_breakpoints = {
This untagged variant definition is invalid: Case Func has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads.
rescript: [295/415] src/components/Fade-Mui.cmj
FAILED: cannot make progress due to previous errors.
Failure: /home/manu/tmp/r11rc5-mui/node_modules/rescript/linux/ninja.exe
Location: /home/manu/tmp/r11rc5-mui/node_modules/@rescript-mui/material/lib/bs
>>>> Finish compiling (exit: 1)
So, it works while compiling rescript-mui, because its rescript.json doesn’t have “uncurried” flag, which is now true by default. But in my project I use “uncurried: false” (and put @@uncurried in all modules) because some of my dependencies would not compile with “uncurried: true”.