rescript-association / genType

Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
https://rescript-lang.org/docs/gentype/latest/introduction
MIT License
756 stars 44 forks source link

can't be installed on MacOS 12.0.1 #590

Closed evelant closed 1 year ago

evelant commented 2 years ago

yarn add --dev gentype fails with

 error: executable not found: /Users/myuser/dev/project/app/node_modules/gentype/vendor-darwin/gentype.exe

Looks like there's a related closed issue here https://github.com/rescript-association/genType/issues/346

Perhaps because I'm on an M1 Mac? If no static binary can be provided for various platforms what are the build requirements?

Sorry if I'm missing something obvious, I've just discovered ReScript and it looks like a fantastically better alternative to Typescript. This is a bit of a frustrating brick wall I've hit trying to get started.

edit: per the error message, the vendor-darwin folder is indeed empty. Was the last release missing a binary?

illusionalsagacity commented 2 years ago

@evelant if you're on yarn v3, or maybe this also exists on earlier versions, the postinstall.js script does not seem to run. I've observed this also happening on linux as well. The gentype.exe file exists, you need to move it into the vendor-* directory manually.

ryyppy commented 1 year ago

This repository is being archived. If you feel like the issue still relevant, please re-create it in the compiler repo. Thanks!