-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
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
d.ts generation failed because of $$__sveltets_2_IsomorphicComponent
naming conflict
#2536
Comments
Can you provide the code for button and buttonlink? |
This comment has been minimized.
This comment has been minimized.
Can you explain to me what's going on? |
Hello |
I've also run into this issue. The way I got it to shut up and work was to update your repro to the following: import Button from './Button.svelte';
export const RenamedButton = Button as typeof Button |
This is a general TypeScript limitation, for some reason it refuses to use The workaround that @huntabyte shows is the correct fix to solve this. Alternatively you can also do import Button from './Button.svelte';
export const RenamedButton: typeof Button = Button This forces TS to say "oh alright I'm just gonna use |
What are you do? |
Describe the bug
Hello, is this not possible in Svelte? Seems like the compiler is having a meltdown
Im getting this
d.ts
error when building in library modeSample usage in Svelte:
Reproduction
npm run build
and see the console output error aboutd.ts
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: