Skip to content

james-yeoman/jsx-syntax-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSCode JSX Syntax Bug

In src/index.tsx, the Foo component is a generic component with a type default.

If you remove the fallback, or add an extends, the error highlighting goes away.

If you run pnpm build, the generated type declaration is rendered perfectly fine.

Screenshots

The following screenshots were taken of my editor using the Dark Modern built-in VSCode theme, all extensions disabled, and Semantic Highlighting enabled. The bug, however, isn't exclusive to Semantic Highlighting.

Unmodified src/index.tsx

Screenshot

The generated types/index.d.ts

Screenshot

src/index.tsx after adding an extends to the generic

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published