tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

Error when building from source #80

Closed zen14774 closed 3 years ago

zen14774 commented 3 years ago

Just a heads up. The version of sugarcube I found distributed with tweego was 2.30. I noticed there was a newer version so I wanted to try building this from source. When I ran node build.js it failed because writeFileContents was expecting a string instead of a number, I was able to get it to build by casting the version number to a string. So I got it working in the end but I decided to report the small hiccup just so you're aware. Have a nice day!

tmedwards commented 3 years ago

Continues to work for me as-is. What version of NodeJS were you using?

zen14774 commented 3 years ago

Probably v15.0.1, that's what I have now and I don't think it has updated in the last two days.

tmedwards commented 3 years ago

Hmm. Looks to be caused by a change to the fs.writeFileSync() API in Node.js v14.