Compile Error on Rescript Demo

I follow the installation instruction in this link: Installation | ReScript Language Manual, which is

git clone https://github.com/rescript-lang/rescript-project-template
cd rescript-project-template
npm install
npm run res:build
node src/Demo.bs.js

However, when I’m running npm run res:build, there’s an error.


I have checked my Node.js, which is of version 18.12.1. But I cannot find any problem.
I’m wondering if I miss something, or Rescript doesn’t support a too new Node.js.
Thank you.

Worked for me here with npm 7.3.0, node v15.5.1, rescript 10.0.1. yarn too fwiw.

Hope that helps?
A

1 Like

Are you using Windows OS? Is there any special characters in your path of working directory?

1 Like

Works for me. Could you share more info?

1 Like

Could antivirus software be blocking ReScript?

1 Like

Oh yes! you’re right! There’re some non-ASCII characters in my path. After changing them into ASCII character, it works. Thank you so much!