Skip to content

Add docs for gentype setup with commonjs #432

Closed
@alarbada

Description

@alarbada

I've been bitten by this same issue:
https://forum.rescript-lang.org/t/gentype-curry-js-error-when-exporting-a-rescript-function-with-more-than-1-parameter/2265

Adding the following config:

// bsconfig.json
"gentypeconfig": {
  ...,
  "module": "commonjs", // undocumented option
  ... etc
**},**

Solves it, but only thanks to searleser97 in the forum. If it wasn't for him I would have spent quite some time debugging this issue.

This option should be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions