You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
I'm exporting the Icon.astro component in an index.ts file like export { default } from './Icon.astro';. This causes a red line under the file path ./Icon.astro. When I hover over there line I get the following error Module './Icon.astro' was resolved to '<path_to_component>/Icon.astro', but '--jsx' is not set. ts(6142).
Steps to Reproduce
npm create astro@latest using template Empty with Typescript
Create the Icon.astro component.
Create an index.ts.
Export the Icon.astro from the index.ts like export { default } from './Icon.astro';
Error! When you have the Astro extension running you should see the red line under the path ./Icon.astro.
Describe the Bug
I'm exporting the
Icon.astrocomponent in anindex.tsfile likeexport { default } from './Icon.astro';. This causes a red line under the file path./Icon.astro. When I hover over there line I get the following errorModule './Icon.astro' was resolved to '<path_to_component>/Icon.astro', but '--jsx' is not set. ts(6142).Steps to Reproduce
npm create astro@latestusing template Empty with TypescriptIcon.astrocomponent.index.ts.Icon.astrofrom theindex.tslikeexport { default } from './Icon.astro';./Icon.astro.