Skip to content

[bug] failing to resolve react/jsx-runtime when type checking TSX files #767

@mjames-c

Description

@mjames-c

Apologies if this is considered a duplicate of #765 -- but I believe it is slightly different due to a lack of compilerOptions.jsx support in typescript-go (vs compilerOptions.jsxImportSource)...

The company I work for has a TS project with over 90k+ files. I recently ran tsgo against this project and was very impressed with how quick it was. However, it reporting over 38k errors when type checking our TSX files with form:

This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed.
...
Found 41250 errors in 35304 files.

I believe this could be due to tsgo currently not supporting our usage of the compilerOptions.jsx tsconfig property so wanted to create an issue for tracking support.

{
  "compilerOptions": {
    "jsx": "react-jsx",
  }
}

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