vite-plugin-solid-svg
vite-plugin-solid-svg copied to clipboard
Typescript error: Duplicate identifier 'src'
When compiling with TypeScript, I get the following error:
node_modules/vite-plugin-solid-svg/types-component-solid.d.ts:4:18 - error TS2300: Duplicate identifier 'src'.
4 export default c
~
node_modules/vite/client.d.ts:135:18
135 export default src
~~~
'src' was also declared here.
node_modules/vite/client.d.ts:135:18 - error TS2300: Duplicate identifier 'src'.
135 export default src
~~~
node_modules/vite-plugin-solid-svg/types-component-solid.d.ts:4:18
4 export default c
~
'src' was also declared here.
I believe this is because of the fact that this plugin replaces the built-in vite svg import.
Can you try with skipLibCheck: true in tsconfig?