Skip to content

Codegen Does Not Generate Files for .tsx File Type #976

Open

Description

This documentation states that "The (spec) file must be named Native<MODULE_NAME>, with a .js or .jsx extension when using Flow, or a .ts, or .tsx extension when using TypeScript". However when I was creating a Turbo Module on canary last week, the codegen file would only generate if I set the file type to ts. It would not generate the codegen source if the file type was .tsx.

Activity

  1. chrisglein commented on Sep 26, 2024

    @chrisglein
    Member

    Documentation should be updated to indicate leave the "x" off. This specific part:

    The file must be named Native<MODULE_NAME>, with a .js or .jsx extension when using Flow, or a .ts, or .tsx extension when using TypeScript.

  2. added
    bug
    documentation
    and removed on Sep 26, 2024
  3. jonthysell commented on Mar 28, 2025

    @jonthysell
    Contributor

    The native modules / codegen docs should be updated as spec files shouldn't have any jsx/tsx content and just be pure js/ts files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationgood first issuegood first issue: easy

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions