Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Multiple definition of type name props when migriting to JSXv4 #654

Closed
@Minnozz

Description

@Minnozz

I had my own type props = ... (unrelated to React props, just using that name). Migrating to JSXv4 caused the following error:

rescript: [30/31] src/SchemaEditor-LumiStoreEditor.cmj
FAILED: src/SchemaEditor-LumiStoreEditor.cmj

  We've found a bug for you!
  SchemaEditor

  Multiple definition of the type name props.
  Names must be unique in a given structure or signature.

FAILED: cannot make progress due to previous errors.

The error seems valid (I should rename my own type), but:

  • We may have to add this to the migration guide (JSXv4 claims the type name props)
  • The error has no source location, which also makes clicking it in VSCode display an error

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