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
vite.config.ts:
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import svgr from "vite-plugin-svgr"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), svgr()], });
import svg: import logo from "../../assets/eComLogo.svg?react"
import logo from "../../assets/eComLogo.svg?react"
but i get Cannot find module '../../assets/xxxx.svg?react' or its corresponding type declarations. on import svg
Cannot find module '../../assets/xxxx.svg?react' or its corresponding type declarations.
The text was updated successfully, but these errors were encountered:
Solved, i just didnt add : /// <reference types="vite-plugin-svgr/client" /> in vite-env.d.ts file
/// <reference types="vite-plugin-svgr/client" />
Sorry, something went wrong.
No branches or pull requests
vite.config.ts:
import svg:
import logo from "../../assets/eComLogo.svg?react"
but i get
Cannot find module '../../assets/xxxx.svg?react' or its corresponding type declarations.
on import svg
The text was updated successfully, but these errors were encountered: