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
I noticed this package uses @types/react-transition-group as a regular dependency which in turn depends on @types/react. @types/react interferes with the JSX types from preact so we get warnings like:
'MenuLink' cannot be used as a JSX component.
Its instance type 'Component<IMenuLink, {}>' is not a valid JSX element.ts(2786)
Are there any problems with moving @types/react-transition-group into devDependencies? This seems to fix our issue.
The text was updated successfully, but these errors were encountered:
I noticed this package uses
@types/react-transition-group
as a regular dependency which in turn depends on@types/react
.@types/react
interferes with the JSX types from preact so we get warnings like:Are there any problems with moving
@types/react-transition-group
into devDependencies? This seems to fix our issue.The text was updated successfully, but these errors were encountered: