chenglou / intro-to-reason-compilation

Ready up!
271 stars 19 forks source link

Error running step 7 #4

Closed aaronshaf closed 7 years ago

aaronshaf commented 7 years ago

I have steps 1-6 successfully. In step7 I have run npm install. When running run.sh I get:

Fatal error: exception Failure("File \"ext_filename.ml\", line 202, characters 13-20bsconfig.json not found from /")
Fatal error: exception Failure("File \"ext_filename.ml\", line 202, characters 13-20bsconfig.json not found from /")
Fatal error: exception Failure("File \"ext_filename.ml\", line 202, characters 13-20bsconfig.json not found from /")
Fatal error: exception Failure("File \"ext_filename.ml\", line 202, characters 13-20bsconfig.json not found from /")
module.js:442
    throw err;
    ^
edwintorok commented 7 years ago

Looks like the file step7/bsconfig.json is missing from the repository. I created one like this:

{
    "name": "test",
    "sources": { "dir": "src"}
}

And then it works:

$ ./run.sh
hello
hello world
This message might not display.
This is running on Node.js!
chenglou commented 7 years ago

Thanks for the notice! I've updated step 7 according to the latest BS and reason-js changes =).