-
Notifications
You must be signed in to change notification settings - Fork 116
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
Identifier 'Svg' has already been declared #284
Comments
I would encourage you to read the error message and your code again. You can't import the same declarations twice, the typescript compiler will choke on this. Just use regular imports. Type imports are for more esoteric cases when you run into issues with transpilers. For a detailed description, see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export. |
Hello @pehagg I understand the error but the code is not mine. It provide from an SVG I import with this lib. I guess it is the transpiled code. I do not have this issue with the 1.0.0 |
@thibaultcapelli , sorry, I missed the "when I upgrade" part. For context, have you upgraded any other libs in your project or is it this lib only? |
Looks like this is a possible bug in SVGR: |
Looks like there is a fix for it: gregberge/svgr#894 |
If you run into this problem, please check that your lockfile is using the 8.1.0 or newer version for the following
|
I have this error when I upgrade to 1.1.0
The text was updated successfully, but these errors were encountered: