Skip to content

Type errors when building with BISECT_ENABLE #382

@BlueHotDog

Description

@BlueHotDog

without the flag, the app compiles. but when this flag is set, i'm getting a bunch of weird type errors like:

  24 ┆ | Some(true) =>
  25 ┆   Reducer.updateWithSideEffect({...state, isLoading: true}, _ => {
  26 ┆     Webapi.Dom.window->Webapi.Dom.Window.setLocation(...)
  27 ┆   }`,

  This has type: Dom.window
  Somewhere wanted: int

The bs_config looks something like:

"ppx-flags": [
  [
    "bisect_ppx/ppx",
    "--exclude-files",
    ".*\\.test\\.res$$",
    "--exclude-files",
    ".*__Stories\\.res$$"
  ],
  "re-formality/ppx",
  [
    "@reasonml-community/graphql-ppx/ppx",
    "-schema=.../schema.gql"
  ]
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions