Closed zhzhang closed 6 years ago
This should be fixed in the upcoming 1.0 release ๐ can you try using reason-scripts@1.0.0-beta1 as the scripts version?
This seems to be broken with beta3. I've uploaded a repro with a missing semicolon that fails to compile and is swallowed (white screen in the browser, CLI compiled).
@AdamBrodzinski did you get expected behavior with beta1?
@rrdelaney I skipped from 0.9 to beta3 but I can also check beta1 to confirm.
@rrdelaney confirmed, the repro also breaks on beta1.
Thanks for checking... just for clarity, what version of Reason CLI are you using?
Sure no problem, glad to help out in any way I can.
reason-cli@3.2.0-darwin
. Also i'm running MacOS 10.12.4
+1 - Getting same behavior. Any workarounds?
@ruaanvds you can run โyarn bsb -make-world -wโ in a separate window for now
@zhzhang @AdamBrodzinski @ruaanvds Can you try creating a new reason-scripts app and try again?
@rrdelaney Yep, it works great now! It prints out the error to the console as expected as well as displays it into the HTML page ๐ many thanks @anmonteiro !
I'm working on a way to make this more resilient to other failures / changes in the future too.
After following the setup instructions with yarn https://github.com/reasonml-community/reason-scripts I delete a few random lines from App.re, including unbalancing brackets and jsx tags. I then run yarn build, which succeeds. When I run yarn start, the page appears blank. I feel like a compile-time error should be thrown here.