rescript-lang / rescript-compiler

The compiler for ReScript.
https://rescript-lang.org
Other
6.65k stars 442 forks source link

7.3.1 - cannot compile reason react anymore (darwin / linux) #4303

Closed sync closed 4 years ago

sync commented 4 years ago

I am getting this issue when compiling on ubuntu/darwin with bucklescript 7.3.1

steps

npx bs-platform -init my-react-app -theme react-hooks
cd my-react-app/
docker run -it --rm --name tmp-node -v "$PWD":/usr/src/app -w /usr/src/app node:12 sh
yarn
yarn build

error

ninja: warning: bad deps log signature or version; starting over
[5/37] Building src/React.cmj
FAILED: src/React.cmj src/React.cmi /usr/src/app/node_modules/reason-react/src/React.js 
/usr/src/app/node_modules/bs-platform/linux/bsc.exe -bs-package-name reason-react  -bs-package-output commonjs:src -color always -I src -w a -bs-no-version-header -o src/React.cmj src/React.reast

  We've found a bug for you!
  /usr/src/app/node_modules/reason-react/src/React.re

  src/React.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.

[7/37] Building src/ReactEvent.reiast
FAILED: subcommand failed.
Failure: /usr/src/app/node_modules/bs-platform/linux/ninja.exe 
 Location: /usr/src/app/node_modules/reason-react/lib/bs
sync commented 4 years ago

running bsb -clean-world prior to yarn build fixes the issue. Is this still a bug ?

Coobaha commented 4 years ago

also reported here https://github.com/BuckleScript/bucklescript/pull/4263

sync commented 4 years ago

Cool I can close this issue then