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
Since 4.x, I observe that this plugin prints typescript errors during npx vite build, related to default imports. npx tsc does not show these errors, so I think they are bogus and a bug in this plugin.
Clone and run npm i && npx vite build, observe these bogus errors:
index.tsx:2:33 - error TS2604: JSX element type 'Select' does not have any construct or call signatures.
2 export const Component = () => <Select/>;
~~~~~~
index.tsx:2:33 - error TS2786: 'Select' cannot be used as a JSX component.
Its type 'typeof import("node_modules/react-select/dist/react-select.cjs")' is not a valid JSX element type.
2 export const Component = () => <Select/>;
Describe the bug
Since 4.x, I observe that this plugin prints typescript errors during
npx vite build
, related to default imports.npx tsc
does not show these errors, so I think they are bogus and a bug in this plugin.Reproduction
https://github.com/silverwind/dts-4-react-issue
Steps to reproduce
Clone and run
npm i && npx vite build
, observe these bogus errors:System Info
Validations
The text was updated successfully, but these errors were encountered: