Skip to content

Unable to compile @rescript/react with latest master #7258

Closed as not planned
Closed as not planned
@nojaf

Description

@nojaf
% bunx rescript
>>>> Start compiling
Dependency on @rescript/react
rescript: [44/55] src/RescriptReactRouter.cmj
FAILED: src/RescriptReactRouter.cmj

  We've found a bug for you!
  /Users/user/Projects/project/node_modules/@rescript/react/src/RescriptReactRouter.res:157:16-18

  155 ┆ | (list{_, ..._}, list{}) => true
  156 ┆ | (list{aHead, ...aRest}, list{bHead, ...bRest}) =>
  157 ┆   if aHead !== bHead {
  158 ┆     true
  159 ┆   } else {

  The value !== can't be found
  
  Hint: Did you mean == or !=?

rescript: [50/55] src/ReactTestUtils.cmj
FAILED: src/ReactTestUtils.cmj

  We've found a bug for you!
  /Users/user/Projects/project/node_modules/@rescript/react/src/ReactTestUtils.res:105:83-85

  103 ┆ 
  104 ┆ let findBySelectorAndTextContent = (element, selector, content) =>
  105 ┆   querySelectorAll(element, selector)->Js.Array2.find(node => node->te
      ┆ xtContent === content)
  106 ┆ 
  107 ┆ let findBySelectorAndPartialTextContent = (element, selector, content)
      ┆  =>

  The value === can't be found
  
  Hint: Did you mean ==?

rescript: [55/55] src/v3/ReactV3.cmj
FAILED: cannot make progress due to previous errors.
Failure: /Users/user/Projects/rescript/darwinarm64/ninja.exe 
Location: /Users/user/Projects/project/node_modules/@rescript/react/lib/bs
>>>> Finish compiling (exit: 1)
"@rescript/react": "^0.13.0"

Did something recently change with those operators?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions