Bucklescript ppx not working in windows

reasonreact

#1

I am using bs-platform@7.0.1 and bs-emotion on windows. I am looking to use bs-emotion-ppx too but am getting the following error. The error message leads me to believe it is a bs-platform@7.0.1 error but not sure.

CMD: "C:\Users\bikal\AppData\Roaming\npm\node_modules\bs-platform\lib\ninja.exe" -C lib\bs
[1/6] ←[34mBuilding←[39m ←[2msrc\Index.reast←[22m
FAILED: src/Index.reast
"C:\Users\bikal\AppData\Roaming\npm\node_modules\bs-platform\lib\bsc.exe"  -w -30-40+6+7+27+32..39+44+45+101 -color always -bs-jsx 3 -ppx "C:\Users\bikal\source\repos\react-starter1\node_modules\@ahrefs\bs-emotion-ppx\bin\bs-emotion-ppx.exe" -bs-super-errors -bs-no-version-header -o src\Index.reast -bs-syntax-only -bs-binary-ast C:\Users\bikal\source\repos\react-starter1\src\Index.re

  We've found a bug for you!
  C:\Users\bikal\source\repos\react-starter1\src\Index.re

  External preprocessor does not produce a valid file
Command line: C:\Users\bikal\source\repos\react-starter1\node_modules\@ahrefs\bs-emotion-ppx\bin\bs-emotion-ppx.exe "C:\Users\bikal\AppData\Local\Temp\camlppxa327d3" "C:\Users\bikal\AppData\Local\Temp\camlppxad7c66"


File "_none_", line 1:
Error: I/O error: C:\Users\bikal\AppData\Local\Temp\camlppxa327d3: No such file or directory

Basically, bsc/bsb is not generating the ast at the required location.


#2

I am tracking the issue at https://github.com/ahrefs/bs-emotion/issues/31