Skip to content

Type for TSX with solid integration #5017

Description

@chlbri

What version of astro are you using?

16.16.0

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

pnpm

What operating system are you using?

Mac

Describe the Bug

For tsx files for solidjs Components, I need to configure tsconfig in order to correct typescript check errors for JSX.IntrinsicElements.

{
  "extends": "astro/tsconfigs/strict",
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "solid-js"
  }
}

Link to Minimal Reproducible Example

https://stackblitz.com/github/chlbri/astro-site-solig-jsx-bug?file=tsconfig.json

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions