Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Typescript error: Duplicate identifier 'src' #41

Open
SerenaLynas opened this issue Oct 20, 2023 · 1 comment
Open

Typescript error: Duplicate identifier 'src' #41

SerenaLynas opened this issue Oct 20, 2023 · 1 comment

Comments

@SerenaLynas
Copy link

SerenaLynas commented Oct 20, 2023

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.

@MrFoxPro
Copy link
Collaborator

MrFoxPro commented Oct 21, 2023

Can you try with skipLibCheck: true in tsconfig?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants