Skip to content

Not able to compile in ReScript 11 #56

Description

@FilipKittnar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions