We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Thanks for the plugin. It works fine, but with the new version I'm getting typing errors
svgr({ include: '**/*.svg' }),
import Logo from './logo.svg';
root tsconfig compilerOptions
"types": ["vite/client", "vitest/globals", "vite-plugin-svgr/client", "node"],
src/vite-env.d.ts, 1st line
/// <reference types="vite-plugin-svgr/client" />
Whats I'm doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered:
workaround i use rn:
declare module '*.svg' { import { HTMLAttributes } from 'react'; export default React.Component<HTMLAttributes<HTMLDivElement>>; }
allows you to
and supports attributes
<Logo className={styles.logo} style={{ width: '20px ' }} />
Sorry, something went wrong.
No branches or pull requests
Hi! Thanks for the plugin. It works fine, but with the new version I'm getting typing errors
root tsconfig compilerOptions
src/vite-env.d.ts, 1st line
Whats I'm doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered: