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
?component
Without the ?component param at the end of the .svg import, VsCode reports the import as a string.
.svg
string
Only by appending the ?component will VsCode report it as a FunctionalComponent:
FunctionalComponent
I tried adding defaultImport: 'component' to the svgLoader config and it made no difference.
defaultImport: 'component'
svgLoader
The text was updated successfully, but these errors were encountered:
Yeah I have similar issue, I've resolved that by manually putting this to my index.d.ts:
index.d.ts
declare module '*.svg' { import type { FunctionalComponent, SVGAttributes } from 'vue' const src: FunctionalComponent<SVGAttributes> export default src }
Sorry, something went wrong.
No branches or pull requests
Without the
?component
param at the end of the.svg
import, VsCode reports the import as astring
.Only by appending the
?component
will VsCode report it as aFunctionalComponent
:I tried adding
defaultImport: 'component'
to thesvgLoader
config and it made no difference.The text was updated successfully, but these errors were encountered: