What I have:
"rescript": "^11.0.0-beta.4",
"@greenlabs/ppx-spice": "^0.2.0",
Also, in bsconfig:
"bs-dependencies": ["@greenlabs/ppx-spice"],
"ppx-flags": ["@greenlabs/ppx-spice/ppx"],
When I add your basic example to any module:
@spice
type user = {
id: int,
nickname?: string,
}
I get this error:
FAILED: types/Types_Vehicle.cmj
Warning number 4 (configured as error)
/home/ab01234/app/types/Types_Vehicle.res
this pattern-matching is fragile.
It will remain exhaustive when constructors are added to type Js_json.t.
FAILED: cannot make progress due to previous errors.
>>>> Finish compiling(exit: 1)
I have no idea what to do about this and how to make it work.
What I have:
Also, in bsconfig:
When I add your basic example to any module:
I get this error:
I have no idea what to do about this and how to make it work.