Does ReScript 9.1 support rescript/react 0.10.1?

Hi there,

I’m getting an error when I try to upgrade bs-platform to rescript@9.1 for a rescript/react project:

> rescript build

rescript: [1/1] src/demo.cmj
FAILED: src/demo.cmj

  We've found a bug for you!
  /Users/<name>/<repo>/src/demo.res:10:4-9

   8 │   let msg = "Click me " ++ times
   9 │
  10 │   <button> {msg->React.string} </button>
  11 │ }
  12 │

  The module or file ReactDOMRe can't be found.
  - If it's a third-party dependency:
    - Did you list it in bsconfig.json?
    - Did you run `bsb` instead of `bsb -make-world`
      (latter builds third-parties)?
  - Did you include the file's directory in bsconfig.json?

FAILED: cannot make progress due to previous errors.

I made a reproducible repo for the issue: https://github.com/jihchi/rescript-9.1_react

It seems like ReScript 9.1 does not support rescript/react yet?

did you try rescript build -with-deps?

Oh, that works! thank you!

will adapt the error message, thanks for testing

Hi, we have some ideas to achieve better user experience.
In the future, the default command rescript or rescript build will do these things automatically for you and still run fast

4 Likes